[Bf-blender-cvs] [9ecf73f] master: Follow up to the offset scale fix for texture painting: texture mask had the same issue.
Antony Riakiotakis
noreply at git.blender.org
Tue Mar 4 19:36:09 CET 2014
Commit: 9ecf73f7036c9d8482d95075916f48f9a7a806c1
Author: Antony Riakiotakis
Date: Tue Mar 4 20:35:39 2014 +0200
https://developer.blender.org/rB9ecf73f7036c9d8482d95075916f48f9a7a806c1
Follow up to the offset scale fix for texture painting: texture mask had
the same issue.
===================================================================
M source/blender/blenkernel/intern/brush.c
===================================================================
diff --git a/source/blender/blenkernel/intern/brush.c b/source/blender/blenkernel/intern/brush.c
index 4b2e791..68da8f1 100644
--- a/source/blender/blenkernel/intern/brush.c
+++ b/source/blender/blenkernel/intern/brush.c
@@ -684,11 +684,8 @@ float BKE_brush_sample_masktex(const Scene *scene, Brush *br,
x /= (br->mask_stencil_dimension[0]);
y /= (br->mask_stencil_dimension[1]);
- x *= mtex->size[0];
- y *= mtex->size[1];
-
- co[0] = x + mtex->ofs[0];
- co[1] = y + mtex->ofs[1];
+ co[0] = x;
+ co[1] = y;
co[2] = 0.0f;
externtex(mtex, co, &intensity,
@@ -744,11 +741,8 @@ float BKE_brush_sample_masktex(const Scene *scene, Brush *br,
y = flen * sinf(angle);
}
- x *= mtex->size[0];
- y *= mtex->size[1];
-
- co[0] = x + mtex->ofs[0];
- co[1] = y + mtex->ofs[1];
+ co[0] = x;
+ co[1] = y;
co[2] = 0.0f;
externtex(mtex, co, &intensity,
More information about the Bf-blender-cvs
mailing list