diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-09-24 10:12:54 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-09-24 10:13:16 +0300 |
commit | 3d860f53e8becaa8c500b250f5c9ac7215c4f6bf (patch) | |
tree | 51bea897b0afdf6ecec31354fa8655c178dec3d9 /source/blender/editors/mesh/editmesh_extrude_spin_gizmo.c | |
parent | 6db79dafb3edac432a2ef98b5fb7fe94b6f746fd (diff) |
Gizmo: hide redo gizmo when spin tool not active
Selecting a another tool left the gizmo,
which could overlap other tools gizmos.
Diffstat (limited to 'source/blender/editors/mesh/editmesh_extrude_spin_gizmo.c')
-rw-r--r-- | source/blender/editors/mesh/editmesh_extrude_spin_gizmo.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/editors/mesh/editmesh_extrude_spin_gizmo.c b/source/blender/editors/mesh/editmesh_extrude_spin_gizmo.c index 787038fca03..e3fa02e946e 100644 --- a/source/blender/editors/mesh/editmesh_extrude_spin_gizmo.c +++ b/source/blender/editors/mesh/editmesh_extrude_spin_gizmo.c @@ -683,10 +683,14 @@ static void gizmo_spin_prop_angle_set( static bool gizmo_mesh_spin_redo_poll(const bContext *C, wmGizmoGroupType *gzgt) { - return ED_gizmo_poll_or_unlink_delayed_from_operator(C, gzgt, "MESH_OT_spin"); + if (ED_gizmo_poll_or_unlink_delayed_from_operator(C, gzgt, "MESH_OT_spin")) { + if (ED_gizmo_poll_or_unlink_delayed_from_tool_ex(C, gzgt, "MESH_GGT_spin")) { + return true; + } + } + return false; } - static void gizmo_mesh_spin_redo_modal_from_setup( const bContext *C, wmGizmoGroup *gzgroup) { |