Remove color from value type in equal operator
This commit is contained in:
@@ -606,11 +606,9 @@ function getEqualOperator(operator) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type === (ValueTypes.COLOR | ValueTypes.STRING)) {
|
// Since it's not possible to have color types here, we can leave it out
|
||||||
// It's not possible to compare attributes with color values
|
// This fixes issues in case the value type is ambiguously detected as a color (e.g. the string 'red')
|
||||||
// So force it to be treated as a string
|
type = type ^ ValueTypes.COLOR;
|
||||||
type = ValueTypes.STRING;
|
|
||||||
}
|
|
||||||
|
|
||||||
return `(${expressionToGlsl(
|
return `(${expressionToGlsl(
|
||||||
context,
|
context,
|
||||||
|
|||||||
Reference in New Issue
Block a user