diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-12-29 18:57:15 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-12-29 18:57:15 +0400 |
commit | 8301cd1ce671c463084188b668ad2928bbfa4a4e (patch) | |
tree | 132029880ecf298f31d726950a839a7bdc913663 | |
parent | 4f0b7e8c6ae7336e77c7b360d279e5c69ddfaaab (diff) |
Fix #29718: anchored stroke with image-texture --- strange behaviour
Bug was caused by refactoring in rev41470
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index 9fb992d969c..649a993ea69 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -673,16 +673,16 @@ static float tex_strength(SculptSession *ss, Brush *br, float point[3], radius = ss->cache->pixel_radius; // use pressure adjusted size for fixed mode - x = point_2d[0]; - y = point_2d[1]; + x = point_2d[0] + ss->cache->vc->ar->winrct.xmin; + y = point_2d[1] + ss->cache->vc->ar->winrct.ymin; } else /* else (mtex->brush_map_mode == MTEX_MAP_MODE_TILED), leave the coordinates relative to the screen */ { radius = brush_size(br); // use unadjusted size for tiled mode - x = point_2d[0] - ss->cache->vc->ar->winrct.xmin; - y = point_2d[1] - ss->cache->vc->ar->winrct.ymin; + x = point_2d[0]; + y = point_2d[1]; } x /= ss->cache->vc->ar->winx; |