Fix shader parsing of unary minus inside unbracketed math expressions

This commit is contained in:
KosumovicDenis
2026-05-20 13:56:44 +02:00
parent 321b8c944f
commit e458ac5a16
+1
View File
@@ -7753,6 +7753,7 @@ ShaderLanguage::Node *ShaderLanguage::_parse_expression(BlockNode *p_block, cons
_set_error(vformat(RTR("Invalid arguments to unary operator '%s': %s."), get_operator_text(op->op), at));
return nullptr;
}
expression.write[i].node = _reduce_expression(p_block, expression.write[i].node);
expression.remove_at(i + 1);
}