From 60fe933ff64d034401d7671cd16ba6a235eeb6f8 Mon Sep 17 00:00:00 2001 From: Giganzo <158825920+Giganzo@users.noreply.github.com> Date: Tue, 27 Jan 2026 12:32:12 +0100 Subject: [PATCH] Fix icon size for items in show list of selectable nodes menu --- editor/scene/3d/node_3d_editor_plugin.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor/scene/3d/node_3d_editor_plugin.cpp b/editor/scene/3d/node_3d_editor_plugin.cpp index 6976e9799c..24c387276f 100644 --- a/editor/scene/3d/node_3d_editor_plugin.cpp +++ b/editor/scene/3d/node_3d_editor_plugin.cpp @@ -1731,6 +1731,7 @@ void Node3DEditorViewport::_list_select(Ref b) { } else if (!selection_results.is_empty()) { NodePath root_path = get_tree()->get_edited_scene_root()->get_path(); StringName root_name = root_path.get_name(root_path.get_name_count() - 1); + int icon_max_width = EditorNode::get_singleton()->get_editor_theme()->get_constant(SNAME("class_icon_size"), EditorStringName(Editor)); for (int i = 0; i < selection_results.size(); i++) { Node3D *spat = selection_results[i]; @@ -1763,6 +1764,7 @@ void Node3DEditorViewport::_list_select(Ref b) { } selection_menu->add_item((String)spat->get_name() + suffix); selection_menu->set_item_icon(i, icon); + selection_menu->set_item_icon_max_width(i, icon_max_width); selection_menu->set_item_metadata(i, node_path); selection_menu->set_item_tooltip(i, String(spat->get_name()) + "\nType: " + spat->get_class() + "\nPath: " + node_path); }