mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 07:32:00 -04:00
Fix crash for in_dagoth_bridge00.nif (Fixes #1561)
This one is causing trouble by using an unnamed node, will need some more work.
This commit is contained in:
parent
15b486e149
commit
697329f128
@ -60,6 +60,12 @@ void animateCollisionShapes (std::map<OEngine::Physic::RigidBody*, OEngine::Phys
|
||||
{
|
||||
Ogre::Node* bone = animation->getNode(shapeIt->first);
|
||||
|
||||
// FIXME: this will happen for nodes with empty names. Ogre's SkeletonInstance::cloneBoneAndChildren
|
||||
// will assign an auto-generated name if the bone name was empty. We could use the bone handle instead of
|
||||
// the bone name, but that is a bit tricky to retrieve.
|
||||
if (bone == NULL)
|
||||
continue;
|
||||
|
||||
btCompoundShape* compound = dynamic_cast<btCompoundShape*>(instance.mCompound);
|
||||
|
||||
btTransform trans;
|
||||
|
Loading…
x
Reference in New Issue
Block a user