diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-08-31 14:19:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-31 14:19:27 +0200 |
commit | 6dd6e05662d0c3e725aa23df76f07571e8738aa4 (patch) | |
tree | 7993c33061319e44060765b80dcbaa8c9c95ac59 /servers | |
parent | b7f4dcbdd1691363943e4637087a83e31b95167d (diff) |
Revert "Fix shader function calls being assignable"
Diffstat (limited to 'servers')
-rw-r--r-- | servers/visual/shader_language.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/servers/visual/shader_language.cpp b/servers/visual/shader_language.cpp index bc59acead5..d17cf472b3 100644 --- a/servers/visual/shader_language.cpp +++ b/servers/visual/shader_language.cpp @@ -1042,12 +1042,6 @@ 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; |