Skip to content

Commit d7564db

Browse files
committed
Merge pull request godotengine#86388 from timothyqiu/unique-reset
Clear sub-resources list when no sub-resource exists
2 parents 980d551 + 6e49ff9 commit d7564db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

editor/inspector_dock.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ void InspectorDock::_menu_option_confirm(int p_option, bool p_confirmed) {
139139
}
140140
}
141141

142+
unique_resources_list_tree->clear();
142143
if (resource_propnames.size()) {
143-
unique_resources_list_tree->clear();
144144
TreeItem *root = unique_resources_list_tree->create_item();
145145

146146
for (int i = 0; i < resource_propnames.size(); i++) {

0 commit comments

Comments
 (0)