diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2016-02-14 22:24:36 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2016-02-14 22:25:33 +0300 |
commit | b4e10aa70b917eaeaeaa59a6ed16a4f824e4e2f3 (patch) | |
tree | 6d864e4fa1c53e32cd0626eb2192ebf060998432 | |
parent | a9813f23802c54bb102df2c5f11ab1621fb707c1 (diff) |
Fix T47405: subsurf triangulation was producing incorrect normals after last fix.
-rw-r--r-- | source/blender/blenkernel/intern/subsurf_ccg.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/subsurf_ccg.c b/source/blender/blenkernel/intern/subsurf_ccg.c index a5f7d568978..61b759e6d2e 100644 --- a/source/blender/blenkernel/intern/subsurf_ccg.c +++ b/source/blender/blenkernel/intern/subsurf_ccg.c @@ -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 + 2; varray[start++] = totloops; - varray[start++] = totloops + 1; + varray[start++] = totloops + 2; + varray[start++] = totloops + 1; + varray[start++] = totloops; fc[mati].i_tri_visible += 6; |