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:
authorAntony Riakiotakis <kalast@gmail.com>2015-07-17 15:56:10 +0300
committerAntony Riakiotakis <kalast@gmail.com>2015-07-17 15:56:10 +0300
commit7c06167982fd1947b877a53f24f9dbb9ad9b6d5e (patch)
treebba074581133cad965e6ff4c118ac5ef2b286f4e
parent5f09348fe8fdbd9397be1e0181014edb71bf657f (diff)
Change winding of looptris in subsurf so they point to the same
direction as the surface.
-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 159e26ba869..df6e33ed19c 100644
--- a/source/blender/blenkernel/intern/subsurf_ccg.c
+++ b/source/blender/blenkernel/intern/subsurf_ccg.c
@@ -3620,14 +3620,14 @@ static const MLoopTri *ccgDM_getLoopTriArray(DerivedMesh *dm)
lt = &mlooptri[i];
/* quad is (0, 3, 2, 1) */
lt->tri[0] = (poly_index * 4) + 0;
- lt->tri[1] = (poly_index * 4) + 3;
- lt->tri[2] = (poly_index * 4) + 2;
+ lt->tri[1] = (poly_index * 4) + 2;
+ lt->tri[2] = (poly_index * 4) + 3;
lt->poly = poly_index;
lt = &mlooptri[i + 1];
lt->tri[0] = (poly_index * 4) + 0;
- lt->tri[1] = (poly_index * 4) + 2;
- lt->tri[2] = (poly_index * 4) + 1;
+ lt->tri[1] = (poly_index * 4) + 1;
+ lt->tri[2] = (poly_index * 4) + 2;
lt->poly = poly_index;
}
}