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 19:02:07 +0300
committerAntony Riakiotakis <kalast@gmail.com>2015-07-25 19:02:07 +0300
commit17e3f905e13f6424258668c8c15f248d56e60cc1 (patch)
tree7576e3baf99ea9fe41547a454e3c91a7b637950b /source/blender/editors/sculpt_paint/sculpt.c
parenta6b1e281eb13d4363ed7c82f17bf521804632ede (diff)
Style cleanup + fix sign on previous commit.
Diffstat (limited to 'source/blender/editors/sculpt_paint/sculpt.c')
-rw-r--r--source/blender/editors/sculpt_paint/sculpt.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index 26fe6856c0e..d03b5b4343d 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -3458,19 +3458,20 @@ static void do_tiled(Sculpt *sd, Object *ob, Brush *brush, UnifiedPaintSettings
{
SculptSession *ss = ob->sculpt;
StrokeCache *cache = ss->cache;
- const float * bbMin = ob->bb->vec[0];
- const float * bbMax = ob->bb->vec[6];
+ const float radius = cache->radius;
+ const float *bbMin = ob->bb->vec[0];
+ const float *bbMax = ob->bb->vec[6];
float start[3];
float end[3];
- const float * step = sd->paint.tile_offset;
+ const float *step = sd->paint.tile_offset;
int dim;
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] - cache->radius) / step[dim];
+ int n = (cache->location[dim] - bbMin[dim] + radius) / step[dim];
start[dim] = cache->location[dim] - n * step[dim];
- end[dim] = bbMax[dim] + cache->radius;
+ end[dim] = bbMax[dim] + radius;
}
else
start[dim] = end[dim] = cache->location[dim];