Skip to content

Commit

Permalink
Clear sub-resources list when no sub-resource exists
Browse files Browse the repository at this point in the history
(cherry picked from commit 6e49ff9)
  • Loading branch information
timothyqiu authored and YuriSizov committed Jan 25, 2024
1 parent c2d38b4 commit beadc92
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 beadc92

Please sign in to comment.