From 61e0549e658eb82e2d70c0ae78124aaa989a0161 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Perdig=C3=A3o?= Date: Mon, 23 Oct 2023 14:36:22 -0300 Subject: [PATCH] add_aggregate now add the empty using the 3d cursor location --- src/blenderbim/blenderbim/bim/module/aggregate/operator.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/blenderbim/blenderbim/bim/module/aggregate/operator.py b/src/blenderbim/blenderbim/bim/module/aggregate/operator.py index bee67a413e..01fc83d472 100644 --- a/src/blenderbim/blenderbim/bim/module/aggregate/operator.py +++ b/src/blenderbim/blenderbim/bim/module/aggregate/operator.py @@ -164,6 +164,7 @@ class BIM_OT_add_aggregate(bpy.types.Operator, tool.Ifc.Operator): def create_aggregate(self, context, ifc_class): aggregate = bpy.data.objects.new("Assembly", None) + aggregate.location = context.scene.cursor.location bpy.ops.bim.assign_class(obj=aggregate.name, ifc_class=ifc_class) return aggregate