diff --git a/servers/visual/shader_language.cpp b/servers/visual/shader_language.cpp index 90b2dc9941b..1a15752f002 100644 --- a/servers/visual/shader_language.cpp +++ b/servers/visual/shader_language.cpp @@ -6006,6 +6006,7 @@ Error ShaderLanguage::_parse_shader(const Map &p_funct } else { _set_error("Expected valid type hint after ':'."); + return ERR_PARSE_ERROR; } if (uniform2.hint != ShaderNode::Uniform::HINT_RANGE && uniform2.hint != ShaderNode::Uniform::HINT_NONE && uniform2.hint != ShaderNode::Uniform::HINT_COLOR && type <= TYPE_MAT4) {