mirror of
https://github.com/godotengine/godot.git
synced 2025-01-26 20:42:55 -05:00
Revert "Fix shader function calls being assignable"
This commit is contained in:
parent
b7f4dcbdd1
commit
6dd6e05662
1 changed files with 0 additions and 6 deletions
|
@ -1042,12 +1042,6 @@ bool ShaderLanguage::_validate_operator(OperatorNode *p_op, DataType *r_ret_type
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
case OP_ASSIGN: {
|
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 na = p_op->arguments[0]->get_datatype();
|
||||||
DataType nb = p_op->arguments[1]->get_datatype();
|
DataType nb = p_op->arguments[1]->get_datatype();
|
||||||
valid = na == nb;
|
valid = na == nb;
|
||||||
|
|
Loading…
Add table
Reference in a new issue