From de9205f72df75bffbe92a972280aef8037f1143b Mon Sep 17 00:00:00 2001 From: Yuri Roubinsky Date: Fri, 3 Dec 2021 10:34:56 +0300 Subject: [PATCH] Fix ^= operator in shaders --- servers/visual/shader_language.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/servers/visual/shader_language.cpp b/servers/visual/shader_language.cpp index 70863dc86ce..726ada770a1 100644 --- a/servers/visual/shader_language.cpp +++ b/servers/visual/shader_language.cpp @@ -445,6 +445,10 @@ ShaderLanguage::Token ShaderLanguage::_get_token() { case ':': return _make_token(TK_COLON); case '^': + if (GETCHAR(0) == '=') { + char_idx++; + return _make_token(TK_OP_ASSIGN_BIT_XOR); + } return _make_token(TK_OP_BIT_XOR); case '~': return _make_token(TK_OP_BIT_INVERT);