mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 23:36:20 +00:00
Increment snap now works only for plane and axis snapping.
This commit is contained in:
@@ -347,7 +347,12 @@ class PolylineOperator:
|
|||||||
if self.mousemove_count > 3:
|
if self.mousemove_count > 3:
|
||||||
detected_snaps = tool.Snap.detect_snapping_points(context, event, self.objs_2d_bbox, self.tool_state)
|
detected_snaps = tool.Snap.detect_snapping_points(context, event, self.objs_2d_bbox, self.tool_state)
|
||||||
self.snapping_points = tool.Snap.select_snapping_points(context, event, self.tool_state, detected_snaps)
|
self.snapping_points = tool.Snap.select_snapping_points(context, event, self.tool_state, detected_snaps)
|
||||||
tool.Polyline.calculate_distance_and_angle(context, self.input_ui, self.tool_state, should_round=True)
|
|
||||||
|
should_round = False
|
||||||
|
if self.snapping_points[0][1] in {"Plane", "Axis"}:
|
||||||
|
should_round = True
|
||||||
|
|
||||||
|
tool.Polyline.calculate_distance_and_angle(context, self.input_ui, self.tool_state, should_round=should_round)
|
||||||
tool.Polyline.calculate_x_y_and_z(context, self.input_ui, self.tool_state)
|
tool.Polyline.calculate_x_y_and_z(context, self.input_ui, self.tool_state)
|
||||||
tool.Blender.update_viewport()
|
tool.Blender.update_viewport()
|
||||||
return {"RUNNING_MODAL"}
|
return {"RUNNING_MODAL"}
|
||||||
|
|||||||
Reference in New Issue
Block a user