BGE: Fix animations when using VBOs

This commit is contained in:
Mitchell Stokes 2016-03-09 20:44:14 -08:00
parent 0bcbbb1ee3
commit 11e4558313
1 changed files with 6 additions and 1 deletions

View File

@ -153,7 +153,10 @@ void BL_SkinDeformer::Relink(CTR_Map<class CTR_HashedPtr, void*>*map)
bool BL_SkinDeformer::Apply(RAS_IPolyMaterial *mat)
{
// We do everything in UpdateInternal() now so we can thread it.
return false;
// All that is left is telling the rasterizer if we've changed the mesh
bool retval = !m_poseApplied;
m_poseApplied = true;
return retval;
}
RAS_Deformer *BL_SkinDeformer::GetReplica()
@ -359,6 +362,8 @@ bool BL_SkinDeformer::UpdateInternal(bool shape_applied)
UpdateTransverts();
m_poseApplied = false;
/* indicate that the m_transverts and normals are up to date */
return true;
}