From 6dd6e05662d0c3e725aa23df76f07571e8738aa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Thu, 31 Aug 2017 14:19:27 +0200 Subject: [PATCH] Revert "Fix shader function calls being assignable" --- servers/visual/shader_language.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/servers/visual/shader_language.cpp b/servers/visual/shader_language.cpp index bc59acead51..d17cf472b3d 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;