Fallback to parent class icon by default for gdextension

This commit is contained in:
LuoZhihao 2025-07-15 02:20:42 +08:00 committed by Luo Zhihao
parent 250ef8dc32
commit ce2fae79b1
19 changed files with 41 additions and 31 deletions

View file

@ -1674,7 +1674,7 @@ void Node3DEditorViewport::_list_select(Ref<InputEventMouseButton> b) {
for (int i = 0; i < selection_results.size(); i++) {
Node3D *spat = selection_results[i];
Ref<Texture2D> icon = EditorNode::get_singleton()->get_object_icon(spat, "Node");
Ref<Texture2D> icon = EditorNode::get_singleton()->get_object_icon(spat);
String node_path = "/" + root_name + "/" + String(root_path.rel_path_to(spat->get_path()));