mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-03 03:49:41 +00:00
Don't update nodes with an empty name from the skeleton source (Fixes #2125)
This commit is contained in:
parent
a1226501fa
commit
ed686ddd2f
1 changed files with 2 additions and 1 deletions
|
@ -574,7 +574,8 @@ float Animation::getVelocity(const std::string &groupname) const
|
|||
|
||||
static void updateBoneTree(const Ogre::SkeletonInstance *skelsrc, Ogre::Bone *bone)
|
||||
{
|
||||
if(skelsrc->hasBone(bone->getName()))
|
||||
if(bone->getName() != " " // really should be != "", but see workaround in skeleton.cpp for empty node names
|
||||
&& skelsrc->hasBone(bone->getName()))
|
||||
{
|
||||
Ogre::Bone *srcbone = skelsrc->getBone(bone->getName());
|
||||
if(!srcbone->getParent() || !bone->getParent())
|
||||
|
|
Loading…
Reference in a new issue