[Bf-blender-cvs] [b4e10aa] master: Fix T47405: subsurf triangulation was producing incorrect normals after last fix.
Brecht Van Lommel
noreply at git.blender.org
Sun Feb 14 20:38:48 CET 2016
Commit: b4e10aa70b917eaeaeaa59a6ed16a4f824e4e2f3
Author: Brecht Van Lommel
Date: Sun Feb 14 20:24:36 2016 +0100
Branches: master
https://developer.blender.org/rBb4e10aa70b917eaeaeaa59a6ed16a4f824e4e2f3
Fix T47405: subsurf triangulation was producing incorrect normals after last fix.
===================================================================
M 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 a5f7d56..61b759e 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;
More information about the Bf-blender-cvs
mailing list