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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user