diff options
author | mano-wii <germano.costa@ig.com.br> | 2019-02-27 19:37:12 +0300 |
---|---|---|
committer | mano-wii <germano.costa@ig.com.br> | 2019-02-27 19:37:12 +0300 |
commit | 8c4b5ac4c1b496e04bc44ed25f0e89335445ba51 (patch) | |
tree | 01fdeed04e55cf724250a8861b1dae4520317802 /source/blender/editors/transform | |
parent | 2b892c6c2146144b09c8097669bdde39ec2c2ab8 (diff) |
Fix T62007: Dial 3d being drawn out of rotating tool.
It was being drawn when any Gizmo was highlighted.
There are several ways to solve this (creating a new parameter to the operator, checking the gizmos in the invoke or creating a global context).
Also, for a micro-optimization, all of those conditions in the `drawDial3d` could be done once in the invoke.
But since all of these changes involve changing the customdata (`TransInfo`), which is already a bit confusing with so many members, I thought it best to make minimal changes.
Diffstat (limited to 'source/blender/editors/transform')
-rw-r--r-- | source/blender/editors/transform/transform_gizmo_3d.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_gizmo_3d.c b/source/blender/editors/transform/transform_gizmo_3d.c index ff77653a72d..e1066315508 100644 --- a/source/blender/editors/transform/transform_gizmo_3d.c +++ b/source/blender/editors/transform/transform_gizmo_3d.c @@ -1292,7 +1292,7 @@ static void gizmo_xform_message_subscribe( void drawDial3d(const TransInfo *t) { if (t->mode == TFM_ROTATION && t->spacetype == SPACE_VIEW3D) { - wmGizmo *gz = wm_gizmomap_highlight_get(t->ar->gizmo_map); + wmGizmo *gz = wm_gizmomap_modal_get(t->ar->gizmo_map); if (gz == NULL) { /* We only draw Dial3d if the operator has been called by a gizmo. */ return; |