Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Vazquez <blendergit@gmail.com>2022-04-09 17:39:27 +0300
committerAntonio Vazquez <blendergit@gmail.com>2022-04-09 17:39:35 +0300
commit3f2d5dfc0d2dd23c39ab33f340f12f6c9f47d035 (patch)
treeee17fbae413f1e40b80712ff2dc6f890c70b1be5 /source/blender/editors/gpencil/gpencil_sculpt_paint.c
parent32da64c17e9d509bc8ce534b1fdf03d748ca13c8 (diff)
GPencil: Fix unreported error in Grab Brush for transformed layers
If the layer was transformed the grab brush was not initialized as expected because it was using an untrasformed matrix.
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_sculpt_paint.c')
-rw-r--r--source/blender/editors/gpencil/gpencil_sculpt_paint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/gpencil/gpencil_sculpt_paint.c b/source/blender/editors/gpencil/gpencil_sculpt_paint.c
index 7de579993c1..3cdf364e4b2 100644
--- a/source/blender/editors/gpencil/gpencil_sculpt_paint.c
+++ b/source/blender/editors/gpencil/gpencil_sculpt_paint.c
@@ -1627,7 +1627,7 @@ static bool gpencil_sculpt_brush_do_frame(bContext *C,
*/
gpencil_brush_grab_stroke_init(gso, gps_active);
changed |= gpencil_sculpt_brush_do_stroke(
- gso, gps_active, diff_mat, gpencil_brush_grab_store_points);
+ gso, gps_active, bound_mat, gpencil_brush_grab_store_points);
}
else {
/* Apply effect to the stored points */