BGE modifier: generate correct physic shape, share static derived mesh, share display...
[blender.git] / source / gameengine / Converter / BL_MeshDeformer.cpp
index b6a59774636b24df6df623f58f7c241d2c2e1e9b..b49544050d12660d69386efa0c948c9ac5452f39 100644 (file)
@@ -91,6 +91,15 @@ BL_MeshDeformer::~BL_MeshDeformer()
                delete [] m_transnors;
 }
  
+void BL_MeshDeformer::ProcessReplica()
+{
+       m_transverts = NULL;
+       m_transnors = NULL;
+       m_tvtot = 0;
+       m_bDynamic=false;
+       m_lastDeformUpdate = -1;
+}
+
 void BL_MeshDeformer::Relink(GEN_Map<class GEN_HashedPtr, void*>*map)
 {
        void **h_obj = (*map)[m_gameobj];