mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 22:33:33 +00:00
fix #5290: to fix error after shift and click bim.activate_drawing
This commit is contained in:
@@ -1806,7 +1806,7 @@ class ActivateDrawing(bpy.types.Operator):
|
|||||||
dprops = bpy.context.scene.DocProperties
|
dprops = bpy.context.scene.DocProperties
|
||||||
|
|
||||||
if self.switch_camera_only:
|
if self.switch_camera_only:
|
||||||
camera = tool.Drawing.import_drawing(drawing)
|
camera = tool.Ifc.get_object(drawing)
|
||||||
tool.Blender.activate_camera(camera)
|
tool.Blender.activate_camera(camera)
|
||||||
else:
|
else:
|
||||||
if not self.camera_view_point:
|
if not self.camera_view_point:
|
||||||
|
|||||||
Reference in New Issue
Block a user