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
  • Loading branch information
timothyqiu committed Dec 21, 2023
1 parent 9d1cbab commit 6e49ff9
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 6e49ff9

Please sign in to comment.