From 3dea1c725e513a57ac156224a7f441f0530d022b Mon Sep 17 00:00:00 2001
From: Yuri Roubinsky <chaosus89@gmail.com>
Date: Sun, 19 Jan 2020 16:35:54 +0300
Subject: [PATCH] Clears completion_class in shaders (may cause troubles if
 not).

---
 servers/visual/shader_language.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/servers/visual/shader_language.cpp b/servers/visual/shader_language.cpp
index 3e0a28ac1d5..121519be0f0 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;