Implement adding plain bricks not based on IFC

This commit is contained in:
Dion Moult
2022-01-12 16:22:32 +11:00
parent 39960998de
commit 5ba542488a
6 changed files with 67 additions and 31 deletions
@@ -122,7 +122,9 @@ class AddBrick(bpy.types.Operator, Operator):
core.add_brick(
tool.Ifc,
tool.Brick,
obj=context.active_object,
obj=context.active_object
if context.selected_objects and tool.Ifc.get_entity(context.active_object)
else None,
namespace=props.namespace,
brick_class=props.brick_equipment_class,
library=library,