浏览代码

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

Yuri Roubinsky 5 年之前
父节点
当前提交
3dea1c725e
共有 1 个文件被更改,包括 1 次插入0 次删除
  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_block = NULL;
 	completion_function = StringName();
+	completion_class = SubClassTag::TAG_GLOBAL;
 
 	error_line = 0;
 	tk_line = 1;