Skip to content

Commit

Permalink
Merge pull request #86388 from timothyqiu/unique-reset
Browse files Browse the repository at this point in the history
Clear sub-resources list when no sub-resource exists
  • Loading branch information
YuriSizov committed Dec 22, 2023
2 parents 980d551 + 6e49ff9 commit d7564db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/inspector_dock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit d7564db

Please sign in to comment.