diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-09-18 07:58:20 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-09-18 07:58:20 +0300 |
commit | 0a3b66cfb573a91ba3b19f30ead4a026bdfa6873 (patch) | |
tree | 7f91df7970a4d4b20b9fe99fab5dbfc130334c6b /source/blender/editors/mesh/editmesh_extrude_spin_gizmo.c | |
parent | 2b57222ecea2e73ce28027373c0f3b57c75011a9 (diff) |
Gizmo: dial3d option to get angles w/o wrapping
Needed for spinning multiple revolutions.
Diffstat (limited to 'source/blender/editors/mesh/editmesh_extrude_spin_gizmo.c')
-rw-r--r-- | source/blender/editors/mesh/editmesh_extrude_spin_gizmo.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/mesh/editmesh_extrude_spin_gizmo.c b/source/blender/editors/mesh/editmesh_extrude_spin_gizmo.c index b7aca5811be..800e679b8a9 100644 --- a/source/blender/editors/mesh/editmesh_extrude_spin_gizmo.c +++ b/source/blender/editors/mesh/editmesh_extrude_spin_gizmo.c @@ -557,6 +557,8 @@ static void gizmo_mesh_spin_redo_setup(const bContext *C, wmGizmoGroup *gzgroup) RNA_enum_set(ggd->translate_z->ptr, "draw_style", ED_GIZMO_ARROW_STYLE_NORMAL); RNA_enum_set(ggd->translate_c->ptr, "draw_style", ED_GIZMO_MOVE_STYLE_RING_2D); + RNA_boolean_set(ggd->angle_z->ptr, "wrap_angle", false); + WM_gizmo_set_flag(ggd->translate_c, WM_GIZMO_DRAW_VALUE, true); WM_gizmo_set_flag(ggd->rotate_c, WM_GIZMO_DRAW_VALUE, true); WM_gizmo_set_flag(ggd->angle_z, WM_GIZMO_DRAW_VALUE, true); |