Fix shader parsing of unary minus inside unbracketed math expressions
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user