Clear sub-resources list when no sub-resource exists

(cherry picked from commit 6e49ff91c0)
This commit is contained in:
Haoyu Qiu 2023-12-21 18:14:10 +08:00 committed by Yuri Sizov
parent c2d38b4388
commit beadc92e4f
1 changed files with 1 additions and 1 deletions

View File

@ -139,8 +139,8 @@ void InspectorDock::_menu_option_confirm(int p_option, bool p_confirmed) {
} }
} }
unique_resources_list_tree->clear();
if (resource_propnames.size()) { if (resource_propnames.size()) {
unique_resources_list_tree->clear();
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++) {