forked from bartvdbraak/blender
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:
parent
95763b8c8a
commit
fabde2ab43
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user