BGE fux #17796: Glsl + bones + set smooth = bug on vertext groups.

This commit is contained in:
Benoit Bolsee 2009-04-30 08:02:26 +00:00
parent b5b24ee521
commit 81ea467091

@ -47,6 +47,7 @@
#include "GEN_Map.h"
#include "STR_HashedString.h"
#include "BLI_arithb.h"
bool BL_MeshDeformer::Apply(RAS_IPolyMaterial*)
{
@ -166,6 +167,7 @@ void BL_MeshDeformer::RecalcNormals()
fnor[0]= n1[1]*n2[2] - n1[2]*n2[1];
fnor[1]= n1[2]*n2[0] - n1[0]*n2[2];
fnor[2]= n1[0]*n2[1] - n1[1]*n2[0];
Normalize(fnor);
/* add to vertices for smooth normals */
float *vn1 = m_transnors[v1.getOrigIndex()];