diff options
author | Spartan322 <Megacake1234@gmail.com> | 2024-10-24 18:01:23 -0400 |
---|---|---|
committer | Spartan322 <Megacake1234@gmail.com> | 2024-10-24 18:01:23 -0400 |
commit | 3679f5971aa431d37cc2acd5d459ed4b38aad26f (patch) | |
tree | cee32a21c68b1d737fc0cbe52b2a0ff649016123 /modules/gdscript/editor/gdscript_highlighter.cpp | |
parent | a22fcac9dc8ecca406a3267849954a5a5373dd11 (diff) | |
parent | 1015a481ff43edb1126ab39a147fefda290131e5 (diff) | |
download | redot-engine-3679f5971aa431d37cc2acd5d459ed4b38aad26f.tar.gz |
Merge commit godotengine/godot@1015a481ff43edb1126ab39a147fefda290131e5
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 4d58e21b0e..f28eabdb3d 100644 --- a/modules/gdscript/editor/gdscript_highlighter.cpp +++ b/modules/gdscript/editor/gdscript_highlighter.cpp @@ -703,7 +703,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. */ |