Improved plane selection for Measure tool

This commit is contained in:
Bruno Perdigão
2024-08-15 18:34:10 -03:00
committed by Bruno Perdigão
parent 2f4093f958
commit c477173096
2 changed files with 53 additions and 12 deletions
@@ -2349,6 +2349,16 @@ class MeasureTool(bpy.types.Operator):
tool.Snap.remove_last_polyline_point()
tool.Blender.update_viewport()
if event.shift and event.type == "X":
tool.Snap.set_use_default_container(False)
WallPolylineDecorator.set_use_default_container(False)
tool.Snap.set_snap_plane_method('YZ')
if event.shift and event.type == "Y":
tool.Snap.set_use_default_container(False)
WallPolylineDecorator.set_use_default_container(False)
tool.Snap.set_snap_plane_method('XZ')
if event.shift and event.type == "Z":
tool.Snap.set_use_default_container(False)
WallPolylineDecorator.set_use_default_container(False)