Fixed editmode post-modifier normal calculation for the case where there are

only deform modifiers in the stack. This was an old bug: a typo caused quad
face normals to be calculated using the same vertex twice, giving bad normals.
This commit is contained in:
Ben Batt
2007-05-16 17:20:02 +00:00
parent 8bfa253479
commit fc0ee80fc1

View File

@@ -983,7 +983,7 @@ static DerivedMesh *getEditMeshDerivedMesh(EditMesh *em, Object *ob,
float *no = emdm->faceNos[i];
if(efa->v4) {
float *v4 = vertexCos[(int) efa->v3->tmp.l];
float *v4 = vertexCos[(int) efa->v4->tmp.l];
CalcNormFloat4(v1, v2, v3, v4, no);
VecAddf(emdm->vertexNos[(int) efa->v4->tmp.l], emdm->vertexNos[(int) efa->v4->tmp.l], no);