Commit: e2652bc5adcb29f8f7294cbfa5bb5c23d0e89e84
Author: Antony Riakiotakis
Date:   Sat Jul 25 16:21:09 2015 +0200
Branches: master
https://developer.blender.org/rBe2652bc5adcb29f8f7294cbfa5bb5c23d0e89e84

Fix tile feature not working outside mesh boundaries.

We need to generate strokes up to a brush radius around the bounding
box.

===================================================================

M       source/blender/editors/sculpt_paint/sculpt.c

===================================================================

diff --git a/source/blender/editors/sculpt_paint/sculpt.c 
b/source/blender/editors/sculpt_paint/sculpt.c
index 44de9e6..26fe685 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];

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to