Change angle increment for axis snap.

This commit is contained in:
Bruno Perdigão
2024-10-10 20:58:33 -03:00
parent 3a2f29aefc
commit fe0aa4b5b7
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -174,7 +174,7 @@ class Polyline(bonsai.core.tool.Polyline):
orientation_angle = 0
if input_ui:
if should_round:
angle = round(angle)
angle = 5 * round(angle/5)
factor = tool.Snap.get_increment_snap_value(context)
distance = factor * round(distance / factor)
input_ui.set_value("X", snap_vector.x)
+2 -2
View File
@@ -183,8 +183,8 @@ class Snap(bonsai.core.tool.Snap):
translated_intersection = intersection - last_point
snap_axis = []
if not tool_state.lock_axis:
for i in range(1, 25):
angle = 15 * i
for i in range(1, 13):
angle = 30 * i
snap_axis.append(angle)
else:
snap_axis = [tool_state.snap_angle]