diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-08-26 18:12:08 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-08-26 18:12:08 +0300 |
commit | f62748f10a91650f059d589ac2d500dc5a1c1fea (patch) | |
tree | b0949f69ce747e287c18548a509e008dea808433 /source/blender/blenkernel/intern/CCGSubSurf_opensubdiv.c | |
parent | 9cc75bc524bfc80ed992fc97070b4d70011a896a (diff) |
Fix T45912: Opensubdiv meshes don't properly center when using <numpad .>
Diffstat (limited to 'source/blender/blenkernel/intern/CCGSubSurf_opensubdiv.c')
-rw-r--r-- | source/blender/blenkernel/intern/CCGSubSurf_opensubdiv.c | 3 |
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); } } |