diff options
author | HolonProduction <holonproduction@gmail.com> | 2024-10-14 14:57:16 +0200 |
---|---|---|
committer | HolonProduction <holonproduction@gmail.com> | 2024-10-14 14:57:16 +0200 |
commit | e999f11d53695a2158820871c5fadb23d0c93cef (patch) | |
tree | 8127891f334c29d360887a5ae5864ab52b9f3c0c /modules/gdscript/editor/gdscript_highlighter.cpp | |
parent | 92e51fca7247c932f95a1662aefc28aca96e8de6 (diff) | |
download | redot-engine-e999f11d53695a2158820871c5fadb23d0c93cef.tar.gz |
GDScript: Don't highlight unexposed classes
Diffstat (limited to 'modules/gdscript/editor/gdscript_highlighter.cpp')
-rw-r--r-- | modules/gdscript/editor/gdscript_highlighter.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/gdscript/editor/gdscript_highlighter.cpp b/modules/gdscript/editor/gdscript_highlighter.cpp index d765cfa1ea..0b12f2ff76 100644 --- a/modules/gdscript/editor/gdscript_highlighter.cpp +++ b/modules/gdscript/editor/gdscript_highlighter.cpp @@ -701,7 +701,9 @@ void GDScriptSyntaxHighlighter::_update_cache() { List<StringName> 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. */ |