diff --git a/editor/connections_dialog.cpp b/editor/connections_dialog.cpp index 429467d3403..dca43411e10 100644 --- a/editor/connections_dialog.cpp +++ b/editor/connections_dialog.cpp @@ -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); } diff --git a/editor/create_dialog.cpp b/editor/create_dialog.cpp index f0b2ed6e469..5eebb1c492e 100644 --- a/editor/create_dialog.cpp +++ b/editor/create_dialog.cpp @@ -257,14 +257,9 @@ void CreateDialog::_add_type(const StringName &p_type, TypeCategory p_type_categ inherits = ClassDB::get_parent_class(p_type); inherited_type = TypeCategory::CPP_TYPE; } else { - if (p_type_category == TypeCategory::PATH_TYPE || ScriptServer::is_global_class(p_type)) { - Ref