Oozie
16-04-2007 01:11:27
I'm still using OgreOde, and I thought that I can atleast share the known bugs and my fixes to them, while I found them.
First, a null pointer bug fix in OgreOdeRagdoll.cpp:
I added the if-clause, because _geometry can also be null pointer, if you choose to use geometry="none" in your .ogreode file.
First, a null pointer bug fix in OgreOdeRagdoll.cpp:
void Ragdoll::turnToStone(Ragdoll::PhysicalBone* bone)
{
if(bone->_geometry != 0)
bone->_geometry->setBody(0);
delete bone->_motor;
delete bone->_joint;
delete bone->_body;
bone->_motor = 0;
bone->_joint = 0;
bone->_body = 0;
for (RagdollPhysicalBoneList::iterator i = bone->_child_bones.begin();i != bone->_child_bones.end();++i)
{
turnToStone(*i);
}
}
I added the if-clause, because _geometry can also be null pointer, if you choose to use geometry="none" in your .ogreode file.