mirror of
https://github.com/godotengine/godot.git
synced 2024-11-25 21:52:51 +00:00
Fix expressions for global constants in shaders
This commit is contained in:
parent
9607fc48a0
commit
8b8faf03d5
@ -5099,7 +5099,7 @@ Error ShaderLanguage::_parse_shader(const Map<StringName, FunctionInfo> &p_funct
|
||||
if (!expr)
|
||||
return ERR_PARSE_ERROR;
|
||||
|
||||
if (expr->type != Node::TYPE_CONSTANT) {
|
||||
if (expr->type == Node::TYPE_OPERATOR && ((OperatorNode *)expr)->op == OP_CALL) {
|
||||
_set_error("Expected constant expression after '='");
|
||||
return ERR_PARSE_ERROR;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user