[Bf-blender-cvs] [3f2d5dfc0d2] master: GPencil: Fix unreported error in Grab Brush for transformed layers

Antonio Vazquez noreply at git.blender.org
Sat Apr 9 16:39:44 CEST 2022


Commit: 3f2d5dfc0d2dd23c39ab33f340f12f6c9f47d035
Author: Antonio Vazquez
Date:   Sat Apr 9 16:39:27 2022 +0200
Branches: master
https://developer.blender.org/rB3f2d5dfc0d2dd23c39ab33f340f12f6c9f47d035

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.

===================================================================

M	source/blender/editors/gpencil/gpencil_sculpt_paint.c

===================================================================

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 */



More information about the Bf-blender-cvs mailing list