mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-23 14:56:25 +00:00
Improved plane selection for Measure tool
This commit is contained in:
committed by
Bruno Perdigão
parent
2f4093f958
commit
c477173096
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user