Commit: f62748f10a91650f059d589ac2d500dc5a1c1fea
Author: Sergey Sharybin
Date:   Wed Aug 26 17:12:08 2015 +0200
Branches: master
https://developer.blender.org/rBf62748f10a91650f059d589ac2d500dc5a1c1fea

Fix T45912: Opensubdiv meshes don't properly center when using <numpad .>

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

M       source/blender/blenkernel/intern/CCGSubSurf_opensubdiv.c

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

diff --git a/source/blender/blenkernel/intern/CCGSubSurf_opensubdiv.c 
b/source/blender/blenkernel/intern/CCGSubSurf_opensubdiv.c
index fcc4630..006cebf 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);
        }
 }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to