mirror of
https://github.com/godotengine/godot.git
synced 2024-11-25 13:43:15 +00:00
Merge pull request #10590 from MasonAsh/fix-10589
Fix shader function calls being assignable
This commit is contained in:
commit
9c71da00aa
@ -1041,6 +1041,12 @@ bool ShaderLanguage::_validate_operator(OperatorNode *p_op, DataType *r_ret_type
|
||||
}
|
||||
} break;
|
||||
case OP_ASSIGN: {
|
||||
|
||||
if (p_op->arguments[0]->type != Node::TYPE_MEMBER && p_op->arguments[0]->type != Node::TYPE_VARIABLE) {
|
||||
valid = false;
|
||||
break;
|
||||
}
|
||||
|
||||
DataType na = p_op->arguments[0]->get_datatype();
|
||||
DataType nb = p_op->arguments[1]->get_datatype();
|
||||
valid = na == nb;
|
||||
|
Loading…
Reference in New Issue
Block a user