diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2019-10-21 21:07:45 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2019-10-21 21:07:45 +0300 |
commit | 502f01cc47aba7feec8da828692f60aa2774eb24 (patch) | |
tree | 156e1091a757c34855f51d4efa5967e903bb6c5d /source/blender/editors/gpencil | |
parent | 200267eb968d585901d13fb47446e5b45898df11 (diff) | |
parent | 388c954cb537c4d560da99ed1534e57b8d4127cb (diff) |
Merge branch 'blender-v2.81-release'
Diffstat (limited to 'source/blender/editors/gpencil')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_brush.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/gpencil/gpencil_brush.c b/source/blender/editors/gpencil/gpencil_brush.c index af9cadfb938..741521f3140 100644 --- a/source/blender/editors/gpencil/gpencil_brush.c +++ b/source/blender/editors/gpencil/gpencil_brush.c @@ -637,7 +637,9 @@ static bool gp_brush_push_apply(tGP_BrushEditData *gso, mul_v3_v3fl(delta, gso->dvec, inf); /* apply */ - mul_mat3_m4_v3(gso->object->obmat, delta); /* only rotation component */ + float inv_mat[4][4]; + invert_m4_m4(inv_mat, gso->object->obmat); + mul_mat3_m4_v3(inv_mat, delta); /* only rotation component */ add_v3_v3(&pt->x, delta); /* compute lock axis */ |