We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 927089e commit 8431997Copy full SHA for 8431997
editor/views.py
@@ -86,11 +86,12 @@ def new_sibling(self):
86
self.add_item(new, item)
87
88
def remove(self):
89
- item = self.tree_widget.currentItem()
90
- if item is None:
+ items = self.tree_widget.selectedItems()
+ if len(items) == 0:
91
print("Nothing selected")
92
return
93
- print("Removing " + item.gameObject.name)
+ for item in items:
94
+ print("Removing " + item.gameObject.name)
95
96
def add_item(self, gameObject, parent=None):
97
item = HierarchyItem(gameObject)
0 commit comments