Explorar o código

Clears completion_class in shaders (may cause troubles if not).

Yuri Roubinsky %!s(int64=5) %!d(string=hai) anos
pai
achega
3dea1c725e
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      servers/visual/shader_language.cpp

+ 1 - 0
servers/visual/shader_language.cpp

@@ -856,6 +856,7 @@ void ShaderLanguage::clear() {
 	completion_type = COMPLETION_NONE;
 	completion_type = COMPLETION_NONE;
 	completion_block = NULL;
 	completion_block = NULL;
 	completion_function = StringName();
 	completion_function = StringName();
+	completion_class = SubClassTag::TAG_GLOBAL;
 
 
 	error_line = 0;
 	error_line = 0;
 	tk_line = 1;
 	tk_line = 1;