1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-11 13:10:58 +00:00

Optimize enumeration of global classes in create dialog and autocomplete

This commit is contained in:
Pedro J. Estébanez
2025-01-28 10:27:56 +01:00
parent 318af42020
commit a20934c8e4
6 changed files with 67 additions and 70 deletions

View File

@@ -1446,7 +1446,7 @@ void ConnectionsDock::update_tree() {
doc_class_name = String();
}
class_icon = editor_data.get_script_icon(script_base);
class_icon = editor_data.get_script_icon(script_base->get_path());
if (class_icon.is_null() && has_theme_icon(native_base, EditorStringName(EditorIcons))) {
class_icon = get_editor_theme_icon(native_base);
}