Fix T47405: subsurf triangulation was producing incorrect normals after last fix.

This commit is contained in:
Brecht Van Lommel 2016-02-14 20:24:36 +01:00
parent a9813f2380
commit b4e10aa70b
Notes: blender-bot 2023-06-12 00:52:52 +02:00
Referenced by issue #47405, Bug when applying subsurf modifier on smooth objects.
1 changed files with 5 additions and 5 deletions

View File

@ -2082,13 +2082,13 @@ static void ccgDM_buffer_copy_triangles(
for (x = 0; x < gridFaces; x++) {
start = gpumat->start + fc[mati].i_tri_visible;
varray[start++] = totloops;
varray[start++] = totloops + 2;
varray[start++] = totloops + 3;
varray[start++] = totloops;
varray[start++] = totloops + 1;
varray[start++] = totloops + 2;
varray[start++] = totloops;
varray[start++] = totloops + 2;
varray[start++] = totloops + 1;
varray[start++] = totloops;
fc[mati].i_tri_visible += 6;