diff options
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_ops.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_ops.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_ops.c b/source/blender/editors/sculpt_paint/paint_ops.c index e4cc1c72237..0829fe06c2f 100644 --- a/source/blender/editors/sculpt_paint/paint_ops.c +++ b/source/blender/editors/sculpt_paint/paint_ops.c @@ -528,6 +528,8 @@ static void stencil_set_target(StencilControlData *scd) scd->dim_target = br->mask_stencil_dimension; scd->rot_target = &br->mask_mtex.rot; scd->pos_target = br->mask_stencil_pos; + + sub_v2_v2v2(mdiff, scd->init_mouse, br->mask_stencil_pos); } else { copy_v2_v2(scd->init_sdim, br->stencil_dimension); @@ -537,9 +539,10 @@ static void stencil_set_target(StencilControlData *scd) scd->dim_target = br->stencil_dimension; scd->rot_target = &br->mtex.rot; scd->pos_target = br->stencil_pos; + + sub_v2_v2v2(mdiff, scd->init_mouse, br->stencil_pos); } - sub_v2_v2v2(mdiff, scd->init_mouse, br->stencil_pos); scd->lenorig = len_v2(mdiff); scd->init_angle = atan2(mdiff[1], mdiff[0]); |