From b4e10aa70b917eaeaeaa59a6ed16a4f824e4e2f3 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Sun, 14 Feb 2016 20:24:36 +0100 Subject: Fix T47405: subsurf triangulation was producing incorrect normals after last fix. --- source/blender/blenkernel/intern/subsurf_ccg.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/blender/blenkernel/intern/subsurf_ccg.c') 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; -- cgit v1.2.3