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.
This commit is contained in:
Sergey Sharybin 2015-09-30 20:59:19 +05:00
parent 035d27dca6
commit fb78f6d518
Notes: blender-bot 2023-02-14 10:09:24 +01:00
Referenced by issue #46684, As of 2.76 Cycles matcap materials no longer work
Referenced by issue #46437, obj export ZeroDivisionError
Referenced by issue #46439, Difference between viewport and render, caused by transparent background.
Referenced by issue #46424, Defocus Node in Blender 2.76 Not Working
Referenced by issue #46425, Color gradients particle system not rendered in blender 276 RC3 (Blender Internal)
Referenced by issue #46431, blender-softwaregl crashes in 2.76RC3
Referenced by issue #46421, Blender close when I try to launch "User preferences" option
Referenced by issue #46403, Motion tracking on Blender 2.76 rc3 on mac osx
Referenced by issue #46404, Motion blur acting up.
Referenced by issue #46407, Enabling OSL breaks Vector Transform node
Referenced by issue #46367, Navigation Tool
Referenced by issue #46361, Macbook trackpad two finger pan and rotate not working in 2.76 rc3
Referenced by issue #46347, Sequencer: Text strip Align X/Y not showing
Referenced by issue #46350, Trackpad navigation no longer works on OS X 10.11
1 changed files with 4 additions and 0 deletions

View File

@ -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);