diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2019-10-21 21:06:46 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2019-10-21 21:07:09 +0300 |
commit | 388c954cb537c4d560da99ed1534e57b8d4127cb (patch) | |
tree | d48e82937caf21c6c4bf29e205bb9e60aa93b2a5 /source/blender/editors/gpencil/gpencil_brush.c | |
parent | d0cba5caf464e18e8522c3f890cb1053631374c1 (diff) |
Fix T70888: GPencil Sculpt tools don't work properly in a particular situation
Thanks to @charlie for his help fixing this bug.
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_brush.c')
-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 */ |