Set is_scoped to false when evaluating a swizzle subexpression (#761)

This commit is contained in:
Ashley
2021-04-23 17:53:07 +02:00
committed by GitHub
parent 0725417193
commit 36bace2b41

View File

@@ -651,7 +651,7 @@ impl<W: Write> Writer<W> {
vector,
pattern,
} => {
self.put_expression(vector, context, is_scoped)?;
self.put_expression(vector, context, false)?;
write!(self.out, ".")?;
for &sc in pattern[..size as usize].iter() {
write!(self.out, "{}", COMPONENTS[sc as usize])?;