Skip to content
Snippets Groups Projects
Commit fb78f6d5 authored by Sergey Sharybin's avatar Sergey Sharybin
Browse files

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.
parent 035d27dc
Branches
Tags v2.76-rc3
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment