Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/sculpt.c
| Context not available. | |||||
| int start[3]; | int start[3]; | ||||
| int end[3]; | int end[3]; | ||||
| int cur[3]; | int cur[3]; | ||||
| float bb_min[3], bb_max[3]; | |||||
| BKE_pbvh_bounding_box(ob->sculpt->pbvh, bb_min, bb_max); | |||||
| float orgLoc[3]; /* position of the "prototype" stroke for tiling */ | float orgLoc[3]; /* position of the "prototype" stroke for tiling */ | ||||
| copy_v3_v3(orgLoc, cache->location); | copy_v3_v3(orgLoc, cache->location); | ||||
| for (dim = 0; dim < 3; ++dim) { | for (dim = 0; dim < 3; ++dim) { | ||||
| if ((sd->paint.symmetry_flags & (PAINT_TILE_X << dim)) && step[dim] > 0) { | if ((sd->paint.symmetry_flags & (PAINT_TILE_X << dim)) && step[dim] > 0) { | ||||
| start[dim] = (bbMin[dim] - orgLoc[dim] - radius) / step[dim]; | start[dim] = (bb_min[dim] - orgLoc[dim] - radius) / step[dim]; | ||||
| end[dim] = (bbMax[dim] - orgLoc[dim] + radius) / step[dim]; | end[dim] = (bb_max[dim] - orgLoc[dim] + radius) / step[dim]; | ||||
| } | } | ||||
| else | else | ||||
| start[dim] = end[dim] = 0; | start[dim] = end[dim] = 0; | ||||
| Context not available. | |||||