Merge pull request #86388 from timothyqiu/unique-reset

Clear sub-resources list when no sub-resource exists
This commit is contained in:
Yuri Sizov 2023-12-22 17:20:12 +01:00
commit d7564dbc6d
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()) {
unique_resources_list_tree->clear();
TreeItem *root = unique_resources_list_tree->create_item();
for (int i = 0; i < resource_propnames.size(); i++) {