[Bf-blender-cvs] [fb78f6d] blender-v2.76-release: Fix T46332: Can't select an object with OpenSubdiv enabled
Sergey Sharybin
noreply at git.blender.org
Wed Sep 30 18:05:38 CEST 2015
Commit: fb78f6d5185fe500d861ec7790bca64dc7d0dfa5
Author: Sergey Sharybin
Date: Wed Sep 30 20:59:19 2015 +0500
Branches: blender-v2.76-release
https://developer.blender.org/rBfb78f6d5185fe500d861ec7790bca64dc7d0dfa5
Fix T46332: Can't select an object with OpenSubdiv enabled
The issue was introduced by a wrong fix for T46247. Now both reports should
be properly solved.
===================================================================
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 39669fd..9d5ef10 100644
--- a/source/blender/blenkernel/intern/CCGSubSurf_opensubdiv.c
+++ b/source/blender/blenkernel/intern/CCGSubSurf_opensubdiv.c
@@ -911,6 +911,10 @@ void ccgSubSurf_getMinMax(CCGSubSurf *ss, float r_min[3], float r_max[3])
{
int i;
BLI_assert(ss->skip_grids == true);
+ if (ss->osd_num_coarse_coords == 0) {
+ zero_v3(r_min);
+ zero_v3(r_max);
+ }
for (i = 0; i < ss->osd_num_coarse_coords; i++) {
/* Coarse coordinates has normals interleaved into the array. */
DO_MINMAX(ss->osd_coarse_coords[2 * i], r_min, r_max);
More information about the Bf-blender-cvs
mailing list