From e999f11d53695a2158820871c5fadb23d0c93cef Mon Sep 17 00:00:00 2001 From: HolonProduction Date: Mon, 14 Oct 2024 14:57:16 +0200 Subject: [PATCH] GDScript: Don't highlight unexposed classes --- modules/gdscript/editor/gdscript_highlighter.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/gdscript/editor/gdscript_highlighter.cpp b/modules/gdscript/editor/gdscript_highlighter.cpp index d765cfa1ea4..0b12f2ff767 100644 --- a/modules/gdscript/editor/gdscript_highlighter.cpp +++ b/modules/gdscript/editor/gdscript_highlighter.cpp @@ -701,7 +701,9 @@ void GDScriptSyntaxHighlighter::_update_cache() { List types; ClassDB::get_class_list(&types); for (const StringName &E : types) { - class_names[E] = types_color; + if (ClassDB::is_class_exposed(E)) { + class_names[E] = types_color; + } } /* User types. */