Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2016-02-14 22:24:36 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2016-02-14 22:25:33 +0300
commitb4e10aa70b917eaeaeaa59a6ed16a4f824e4e2f3 (patch)
tree6d864e4fa1c53e32cd0626eb2192ebf060998432 /source/blender/blenkernel/intern/subsurf_ccg.c
parenta9813f23802c54bb102df2c5f11ab1621fb707c1 (diff)
Fix T47405: subsurf triangulation was producing incorrect normals after last fix.
Diffstat (limited to 'source/blender/blenkernel/intern/subsurf_ccg.c')
-rw-r--r--source/blender/blenkernel/intern/subsurf_ccg.c8
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;