mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
You can now delete objects in bulk
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user