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:
-rw-r--r--source/blender/blenkernel/intern/CCGSubSurf_opensubdiv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/CCGSubSurf_opensubdiv.c b/source/blender/blenkernel/intern/CCGSubSurf_opensubdiv.c
index fcc46308efa..006cebf4573 100644
--- a/source/blender/blenkernel/intern/CCGSubSurf_opensubdiv.c
+++ b/source/blender/blenkernel/intern/CCGSubSurf_opensubdiv.c
@@ -906,7 +906,8 @@ void ccgSubSurf_getMinMax(CCGSubSurf *ss, float r_min[3], float r_max[3])
int i;
BLI_assert(ss->skip_grids == true);
for (i = 0; i < ss->osd_num_coarse_coords; i++) {
- DO_MINMAX(ss->osd_coarse_coords[i], r_min, r_max);
+ /* Coarse coordinates has normals interleaved into the array. */
+ DO_MINMAX(ss->osd_coarse_coords[2 * i], r_min, r_max);
}
}