diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2015-07-17 15:56:10 +0300 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2015-07-17 15:56:10 +0300 |
commit | 7c06167982fd1947b877a53f24f9dbb9ad9b6d5e (patch) | |
tree | bba074581133cad965e6ff4c118ac5ef2b286f4e /source | |
parent | 5f09348fe8fdbd9397be1e0181014edb71bf657f (diff) |
Change winding of looptris in subsurf so they point to the same
direction as the surface.
Diffstat (limited to 'source')
-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 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; } } |