mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 14:41:25 +00:00
add_aggregate now add the empty using the 3d cursor location
This commit is contained in:
@@ -164,6 +164,7 @@ class BIM_OT_add_aggregate(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
|
|
||||||
def create_aggregate(self, context, ifc_class):
|
def create_aggregate(self, context, ifc_class):
|
||||||
aggregate = bpy.data.objects.new("Assembly", None)
|
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)
|
bpy.ops.bim.assign_class(obj=aggregate.name, ifc_class=ifc_class)
|
||||||
return aggregate
|
return aggregate
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user