mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 23:36:20 +00:00
Fix bug with bim.aggregate_assign_new_objects_in_aggregate_mode.
This commit is contained in:
@@ -431,9 +431,10 @@ class BIM_OT_aggregate_assign_new_objects_in_aggregate_mode(bpy.types.Operator):
|
|||||||
editing_obj = props.editing_objects.add()
|
editing_obj = props.editing_objects.add()
|
||||||
editing_obj.obj = obj
|
editing_obj.obj = obj
|
||||||
props.editing_aggregate.select_set(True)
|
props.editing_aggregate.select_set(True)
|
||||||
context.view_layer.objects.active = new_objs[0]
|
if new_objs:
|
||||||
self.relating_object = tool.Ifc.get_entity(props.editing_aggregate).id()
|
context.view_layer.objects.active = new_objs[0]
|
||||||
self.related_object = tool.Ifc.get_entity(obj).id()
|
self.relating_object = tool.Ifc.get_entity(props.editing_aggregate).id()
|
||||||
|
self.related_object = tool.Ifc.get_entity(obj).id()
|
||||||
|
|
||||||
BIM_OT_aggregate_assign_object._execute(self, context)
|
BIM_OT_aggregate_assign_object._execute(self, context)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user