1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

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

@@ -258,7 +258,7 @@ void EditorDebuggerTree::update_scene_tree(const SceneDebuggerTree *p_tree, int
} else {
item->set_tooltip_text(0, node.name + "\n" + TTR("Instance:") + " " + node.scene_file_path + "\n" + TTR("Type:") + " " + node.type_name);
}
Ref<Texture2D> icon = EditorNode::get_singleton()->get_class_icon(node.type_name, "");
Ref<Texture2D> icon = EditorNode::get_singleton()->get_class_icon(node.type_name);
if (icon.is_valid()) {
item->set_icon(0, icon);
}