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
diff options
context:
space:
mode:
authorAntony Riakiotakis <kalast@gmail.com>2015-07-25 17:21:09 +0300
committerAntony Riakiotakis <kalast@gmail.com>2015-07-25 17:21:09 +0300
commite2652bc5adcb29f8f7294cbfa5bb5c23d0e89e84 (patch)
tree34181d932677af34adc167ec5aa57c4a93315bfd /source/blender/editors
parent5878050a4bd163928ba16d8181e9034cb5347088 (diff)
Fix tile feature not working outside mesh boundaries.
We need to generate strokes up to a brush radius around the bounding box.
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/sculpt_paint/sculpt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index 44de9e66d0c..26fe6856c0e 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -3468,9 +3468,9 @@ static void do_tiled(Sculpt *sd, Object *ob, Brush *brush, UnifiedPaintSettings
for (dim = 0; dim < 3; ++dim) {
if ((sd->paint.symmetry_flags & (PAINT_TILE_X << dim)) && step[dim] > 0) {
- int n = (cache->location[dim] - bbMin[dim]) / step[dim];
+ int n = (cache->location[dim] - bbMin[dim] - cache->radius) / step[dim];
start[dim] = cache->location[dim] - n * step[dim];
- end[dim] = bbMax[dim];
+ end[dim] = bbMax[dim] + cache->radius;
}
else
start[dim] = end[dim] = cache->location[dim];