Transform: customizable rotation snap increment values

Add two snapping increment options: a regular value
(activated with Ctrl) and a precise value (activated with Ctrl+Shift).
These values are separate for 2D and 3D views.

Ref !118760
This commit is contained in:
Kyler Kelly
2024-03-09 16:50:06 +11:00
committed by Campbell Barton
parent 32151abfc3
commit 060174cf14
17 changed files with 122 additions and 20 deletions

View File

@@ -996,6 +996,10 @@ class IMAGE_PT_snapping(Panel):
row.prop(tool_settings, "use_snap_translate", text="Move", toggle=True)
row.prop(tool_settings, "use_snap_rotate", text="Rotate", toggle=True)
row.prop(tool_settings, "use_snap_scale", text="Scale", toggle=True)
col.label(text="Rotation Increment")
row = col.row(align=True)
row.prop(tool_settings, "snap_angle_increment_2d", text="")
row.prop(tool_settings, "snap_angle_increment_2d_precision", text="")
class IMAGE_PT_proportional_edit(Panel):

View File

@@ -7591,6 +7591,10 @@ class VIEW3D_PT_snapping(Panel):
row.prop(tool_settings, "use_snap_translate", text="Move", toggle=True)
row.prop(tool_settings, "use_snap_rotate", text="Rotate", toggle=True)
row.prop(tool_settings, "use_snap_scale", text="Scale", toggle=True)
col.label(text="Rotation Increment")
row = col.row(align=True)
row.prop(tool_settings, "snap_angle_increment_3d", text="")
row.prop(tool_settings, "snap_angle_increment_3d_precision", text="")
class VIEW3D_PT_proportional_edit(Panel):