diff options
author | mano-wii <germano.costa@ig.com.br> | 2018-10-04 15:14:56 +0300 |
---|---|---|
committer | mano-wii <germano.costa@ig.com.br> | 2018-10-04 19:49:05 +0300 |
commit | 9d8c05f7ecf6c20d48c3b151653bab5cc1b988aa (patch) | |
tree | 6d086347a5259114fbea77d4d19bc4d9406d8164 /source | |
parent | fe47f6e56ade1e413ba30213def917e7ee1afa62 (diff) |
tmp
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/transform/transform_gizmo_3d.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_gizmo_3d.c b/source/blender/editors/transform/transform_gizmo_3d.c index a3f620fb3fe..4e964c3f2b2 100644 --- a/source/blender/editors/transform/transform_gizmo_3d.c +++ b/source/blender/editors/transform/transform_gizmo_3d.c @@ -93,6 +93,8 @@ #include "DEG_depsgraph_query.h" +#include "wm.h" + /* return codes for select, and drawing flags */ #define MAN_TRANS_X (1 << 0) @@ -1242,7 +1244,8 @@ 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); + if (t->mode == TFM_ROTATION && t->spacetype == SPACE_VIEW3D && gz != NULL) { float mat_basis[4][4]; float mat_final[4][4]; float color[4]; |