From aff5b238d9bf7e0b014cd29c65c161cfbed3ba6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Perdig=C3=A3o?= Date: Tue, 13 Aug 2024 17:36:24 -0300 Subject: [PATCH] WIP: Added possibility to change plane intersection method --- src/bonsai/bonsai/bim/module/project/operator.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bonsai/bonsai/bim/module/project/operator.py b/src/bonsai/bonsai/bim/module/project/operator.py index e971b7f18b..d34382d875 100644 --- a/src/bonsai/bonsai/bim/module/project/operator.py +++ b/src/bonsai/bonsai/bim/module/project/operator.py @@ -2349,6 +2349,11 @@ class MeasureTool(bpy.types.Operator): tool.Snap.remove_last_polyline_point() tool.Blender.update_viewport() + if event.shift and event.type == "Z": + tool.Snap.set_use_default_container(False) + WallPolylineDecorator.set_use_default_container(False) + tool.Snap.set_snap_plane_method('XY') + if event.value == "RELEASE" and event.type in {"RIGHTMOUSE", "ESC"}: WallPolylineDecorator.uninstall() tool.Snap.clear_polyline()