TheN00B
03-10-2007 05:18:46
Not sure if anyone has noticed this before, but I stumbled upon it after implementing physical components in my object system. If you attempt to de-init the OgreNewt Debugger object and have no bodies created, then you will experience an unhandled exception on this line:
To correct this, I placed the following lines in the debugger de-init method
Couldn't think of a better way to do this, nor could I think of a work around without changing the OgreNewt code.
m_debugnode->detachAllObjects();
To correct this, I placed the following lines in the debugger de-init method
Ogre::Node::ChildNodeIterator dIter = m_debugnode->getChildIterator();
if(dIter.hasMoreElements())
m_debugnode->detachAllObjects();
Couldn't think of a better way to do this, nor could I think of a work around without changing the OgreNewt code.