diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-09-30 18:59:19 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-09-30 19:05:13 +0300 |
commit | fb78f6d5185fe500d861ec7790bca64dc7d0dfa5 (patch) | |
tree | 3b00b1db2ec15af3ca0b2937a594d7dd3746d3e0 | |
parent | 035d27dca69d9e0d3e7b1e035bdc1362c3e33a97 (diff) |
Fix T46332: Can't select an object with OpenSubdiv enabledv2.76-rc3
The issue was introduced by a wrong fix for T46247. Now both reports should
be properly solved.
-rw-r--r-- | source/blender/blenkernel/intern/CCGSubSurf_opensubdiv.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/CCGSubSurf_opensubdiv.c b/source/blender/blenkernel/intern/CCGSubSurf_opensubdiv.c index 39669fd76d7..9d5ef1079b8 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); |