You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-01 16:38:31 +00:00
Clear sub-resources list when no sub-resource exists
(cherry picked from commit 6e49ff91c0)
This commit is contained in:
@@ -139,8 +139,8 @@ void InspectorDock::_menu_option_confirm(int p_option, bool p_confirmed) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (resource_propnames.size()) {
|
|
||||||
unique_resources_list_tree->clear();
|
unique_resources_list_tree->clear();
|
||||||
|
if (resource_propnames.size()) {
|
||||||
TreeItem *root = unique_resources_list_tree->create_item();
|
TreeItem *root = unique_resources_list_tree->create_item();
|
||||||
|
|
||||||
for (int i = 0; i < resource_propnames.size(); i++) {
|
for (int i = 0; i < resource_propnames.size(); i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user