From c62ed5d3b6ab968927ab460b864eb285863abadc Mon Sep 17 00:00:00 2001 From: Ryan Schultz Date: Sun, 4 Aug 2024 10:00:22 -0500 Subject: [PATCH] shift+click, to quickly switch the drawing view without turning anything on or off in the scene. as discussed: https://community.osarch.org/discussion/2196/quick-way-to-switch-between-drawing-views#latest --- src/blenderbim/blenderbim/bim/module/drawing/operator.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/blenderbim/blenderbim/bim/module/drawing/operator.py b/src/blenderbim/blenderbim/bim/module/drawing/operator.py index 3cc5599bf3..8aec2dd441 100644 --- a/src/blenderbim/blenderbim/bim/module/drawing/operator.py +++ b/src/blenderbim/blenderbim/bim/module/drawing/operator.py @@ -1524,7 +1524,7 @@ class ActivateDrawing(bpy.types.Operator): # make sure to use SKIP_SAVE on property, otherwise it might get stuck if event.type == "LEFTMOUSE" and event.alt: self.camera_view_point = False - # Only activates the camera view on alt+shift. Does not turn on/off objects in scene + # Only activates the camera view on shift+click. Does not turn on/off objects in scene if event.type == "LEFTMOUSE" and event.shift: self.switch_camera_only = True return self.execute(context) @@ -1535,9 +1535,8 @@ class ActivateDrawing(bpy.types.Operator): drawing = tool.Ifc.get().by_id(self.drawing) dprops = bpy.context.scene.DocProperties - camera = tool.Drawing.import_drawing(drawing) - if self.switch_camera_only: + camera = tool.Drawing.import_drawing(drawing) tool.Blender.activate_camera(camera) else: if not self.camera_view_point: