diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2020-12-28 22:19:23 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2020-12-28 22:19:37 +0300 |
commit | 1db27af38f6c9d2fb331954e29080bf3b902a531 (patch) | |
tree | ba3241c24ba2ba4822b53f6adc3b823348e7d805 /source/blender/editors/transform/transform_gizmo_3d.c | |
parent | 6fbeb6e2e05408af448e9409f8e7e11470f82db6 (diff) |
Fix T84200: Rotating a paintcurve [all paintmodes] doesn’t work correctly
The transform code did not provide a 2d context to be used in 3d space.
The solution is to set all matrices for the screen space in these cases.
This commit also removes the dial3d drawing in these cases.
It was not correct anyway.
Diffstat (limited to 'source/blender/editors/transform/transform_gizmo_3d.c')
-rw-r--r-- | source/blender/editors/transform/transform_gizmo_3d.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/transform/transform_gizmo_3d.c b/source/blender/editors/transform/transform_gizmo_3d.c index 37fd8bb63c1..3c82365fdb4 100644 --- a/source/blender/editors/transform/transform_gizmo_3d.c +++ b/source/blender/editors/transform/transform_gizmo_3d.c @@ -1298,6 +1298,11 @@ static void gizmo_xform_message_subscribe(wmGizmoGroup *gzgroup, void drawDial3d(const TransInfo *t) { if (t->mode == TFM_ROTATION && t->spacetype == SPACE_VIEW3D) { + if (t->options & CTX_PAINT_CURVE) { + /* Matrices are in the screen space. Not supported. */ + return; + } + wmGizmo *gz = wm_gizmomap_modal_get(t->region->gizmo_map); if (gz == NULL) { /* We only draw Dial3d if the operator has been called by a gizmo. */ |