forked from bartvdbraak/blender
BGE bug fix for new shape action: mesh with multiple materials did not deform properly
This commit is contained in:
parent
d6c8d2f701
commit
de7619991c
@ -118,7 +118,9 @@ bool BL_ShapeDeformer::Update(void)
|
||||
for (int v =0; v<m_bmesh->totvert; v++)
|
||||
VECCOPY(m_transverts[v], m_bmesh->mvert[v].co);
|
||||
|
||||
#ifdef __NLA_DEFNORMALS
|
||||
RecalcNormals();
|
||||
#endif
|
||||
bSkinUpdate = true;
|
||||
}
|
||||
return bSkinUpdate;
|
||||
|
@ -108,9 +108,7 @@ bool BL_SkinDeformer::Apply(RAS_IPolyMaterial *mat)
|
||||
MT_Point3 pt;
|
||||
// float co[3];
|
||||
|
||||
if (!Update())
|
||||
// no need to update the cache
|
||||
return false;
|
||||
Update();
|
||||
|
||||
array = m_pMeshObject->GetVertexCache(mat);
|
||||
mvarray = m_pMeshObject->GetMVertCache(mat);
|
||||
|
Loading…
Reference in New Issue
Block a user