summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Roubinsky <chaosus89@gmail.com>2020-01-19 16:35:54 +0300
committerYuri Roubinsky <chaosus89@gmail.com>2020-01-19 16:35:54 +0300
commit3dea1c725e513a57ac156224a7f441f0530d022b (patch)
treee7c9c1fb6f3cc6dadceab279fa87b7be3ac53f11
parente8dc581bfca91ddbd87f534aa29a72231dd8581b (diff)
Clears completion_class in shaders (may cause troubles if not).
-rw-r--r--servers/visual/shader_language.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/servers/visual/shader_language.cpp b/servers/visual/shader_language.cpp
index 3e0a28ac1d..121519be0f 100644
--- a/servers/visual/shader_language.cpp
+++ b/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;