BGE #18724: Modifier cause crash in 2.49RC2. My bad, I was too quick to fix the soft body problem in revision 20119. This time I tested against modifiers, soft body, armatures and replace mesh.
This commit is contained in:
@@ -30,6 +30,8 @@
|
||||
#include "BL_DeformableGameObject.h"
|
||||
#include "BL_ShapeDeformer.h"
|
||||
#include "BL_ShapeActionActuator.h"
|
||||
#include "RAS_MaterialBucket.h"
|
||||
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
@@ -101,3 +103,14 @@ bool BL_DeformableGameObject::GetShape(vector<float> &shape)
|
||||
return !shape.empty();
|
||||
}
|
||||
|
||||
void BL_DeformableGameObject::SetDeformer(class RAS_Deformer* deformer)
|
||||
{
|
||||
m_pDeformer = deformer;
|
||||
|
||||
SG_QList::iterator<RAS_MeshSlot> mit(m_meshSlots);
|
||||
for(mit.begin(); !mit.end(); ++mit)
|
||||
{
|
||||
(*mit)->SetDeformer(deformer);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user