Handle named colors as string in equal operator
This commit is contained in:
1 parent
1dc336e459
commit
db57d9bf89
2 files changed
+9
No files matched your search
@@ -606,6 +606,12 @@ function getEqualOperator(operator) {
|
||||
);
|
||||
}
|
||||
|
||||
if (type === (ValueTypes.COLOR | ValueTypes.STRING)) {
|
||||
// It's not possible to compare attributes with color values
|
||||
// So force it to be treated as a string
|
||||
type = ValueTypes.STRING;
|
||||
}
|
||||
|
||||
return `(${expressionToGlsl(
|
||||
context,
|
||||
args[0],
|
||||
|
||||
Reference in new issue
Block a user