mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 18:16:40 +00:00
bim.create_shape_from_step_id - use cursor as the location for the shapes
This commit is contained in:
@@ -348,6 +348,7 @@ class CreateShapeFromStepId(bpy.types.Operator):
|
||||
return True
|
||||
|
||||
def execute(self, context):
|
||||
assert context.scene
|
||||
geometry_library = self.custom_geometry_library or self.geometry_library
|
||||
logger = logging.getLogger("ImportIFC")
|
||||
self.ifc_import_settings = import_ifc.IfcImportSettings.factory(context, IfcStore.path, logger)
|
||||
@@ -365,6 +366,7 @@ class CreateShapeFromStepId(bpy.types.Operator):
|
||||
else:
|
||||
mesh = None
|
||||
obj = bpy.data.objects.new(f"Debug/{element.is_a()}/{element.id()}", mesh)
|
||||
obj.location = context.scene.cursor.location
|
||||
context.scene.collection.objects.link(obj)
|
||||
return {"FINISHED"}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user