[Bf-blender-cvs] [2b1acdb] temp-derivedmesh-looptri: Correct last commit
Campbell Barton
noreply at git.blender.org
Thu Jul 16 16:14:06 CEST 2015
Commit: 2b1acdb0eba1cfccb0b30b1d065989e198188fee
Author: Campbell Barton
Date: Fri Jul 17 00:09:27 2015 +1000
Branches: temp-derivedmesh-looptri
https://developer.blender.org/rB2b1acdb0eba1cfccb0b30b1d065989e198188fee
Correct last commit
===================================================================
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 0e5d043..00ad1ae 100644
--- a/source/blender/blenkernel/intern/subsurf_ccg.c
+++ b/source/blender/blenkernel/intern/subsurf_ccg.c
@@ -3610,15 +3610,15 @@ static const MLoopTri *ccgDM_getLoopTriArray(DerivedMesh *dm)
MLoopTri *lt;
lt = &mlooptri[i];
/* quad is (0, 3, 2, 1) */
- lt->tri[0] = (i * 4) + 0;
- lt->tri[1] = (i * 4) + 3;
- lt->tri[2] = (i * 4) + 2;
+ lt->tri[0] = (poly_index * 4) + 0;
+ lt->tri[1] = (poly_index * 4) + 3;
+ lt->tri[2] = (poly_index * 4) + 2;
lt->poly = poly_index;
lt = &mlooptri[i + 1];
- lt->tri[0] = (i * 4) + 0;
- lt->tri[1] = (i * 4) + 2;
- lt->tri[2] = (i * 4) + 1;
+ lt->tri[0] = (poly_index * 4) + 0;
+ lt->tri[1] = (poly_index * 4) + 2;
+ lt->tri[2] = (poly_index * 4) + 1;
lt->poly = poly_index;
}
}
More information about the Bf-blender-cvs
mailing list