1
0
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:
Yuri Rubinsky
2022-12-20 17:22:44 +03:00
parent 2a04b18d37
commit 522d4243bf
4 changed files with 7 additions and 2 deletions

View File

@@ -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;
}