You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Add missing != operator to StringName
This commit is contained in:
@@ -4417,7 +4417,7 @@ bool ShaderLanguage::_is_operator_assign(Operator p_op) const {
|
||||
}
|
||||
|
||||
bool ShaderLanguage::_validate_varying_assign(ShaderNode::Varying &p_varying, String *r_message) {
|
||||
if (current_function != String("vertex") && current_function != String("fragment")) {
|
||||
if (current_function != "vertex" && current_function != "fragment") {
|
||||
*r_message = vformat(RTR("Varying may not be assigned in the '%s' function."), current_function);
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user