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
path: root/source
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2013-05-01 15:57:31 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2013-05-01 15:57:31 +0400
commit96c2ff952364c5ecc837ed9b7c9040079116ed20 (patch)
tree50b22ac5b92604094865605b35487d59f0f5c325 /source
parent5a91db3d1fa651eea91d81121e4df3aaffdba92a (diff)
Fix #35166: texture paint mask texture stencil not scaling properly.
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/sculpt_paint/paint_ops.c5
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]);