You can now delete objects in bulk

This commit is contained in:
Dion Moult
2021-03-13 09:58:12 +11:00
parent d56869d341
commit 797a5ec1a0
2 changed files with 5 additions and 2 deletions
@@ -42,7 +42,10 @@ class BIM_PT_class(Panel):
row.operator("bim.copy_class", icon="DUPLICATE", text="").obj = context.active_object.name
row.operator("bim.unlink_object", icon="UNLINKED", text="")
row.operator("bim.enable_reassign_class", icon="GREASEPENCIL", text="")
row.operator("bim.unassign_class", icon="X", text="").obj = context.active_object.name
if context.selected_objects:
row.operator("bim.unassign_class", icon="X", text="")
else:
row.operator("bim.unassign_class", icon="X", text="").obj = context.active_object.name
else:
self.draw_class_dropdowns()
row = self.layout.row(align=True)
@@ -33,7 +33,7 @@ class Usecase:
if related_objects:
is_typed_by[0].RelatedObjects = related_objects
else:
self.file.remove(is_typed_by)
self.file.remove(is_typed_by[0])
if types:
related_objects = list(types[0].RelatedObjects)