Fix tile feature not working outside mesh boundaries.

We need to generate strokes up to a brush radius around the bounding
box.
This commit is contained in:
Antonis Ryakiotakis 2015-07-25 16:21:09 +02:00
parent 5878050a4b
commit e2652bc5ad
1 changed files with 2 additions and 2 deletions

View File

@ -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];