Skip to content

Commit 7eaae53

Browse files
committed
Check for no camera
1 parent 37210ea commit 7eaae53

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

editor/views.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ def remove(self):
110110
items = self.tree_widget.selectedItems()
111111
for item in items:
112112
print("Removing", item.gameObject.name)
113+
if self.loaded.Has(item.gameObject):
114+
self.loaded.Remove(item.gameObject)
113115

114116
def add_item(self, gameObject, parent=None):
115117
item = HierarchyItem(gameObject)

0 commit comments

Comments
 (0)