forked from teamnwah/openmw-tes3coop
Use default bone names for duplicate names
This commit is contained in:
parent
75ce10c580
commit
12f1785882
1 changed files with 5 additions and 1 deletions
|
@ -144,7 +144,11 @@ static void fail(const std::string &msg)
|
|||
|
||||
void buildBones(Ogre::Skeleton *skel, Nif::NiNode *node, Ogre::Bone *parent=NULL)
|
||||
{
|
||||
Ogre::Bone *bone = skel->createBone(node->name);
|
||||
Ogre::Bone *bone;
|
||||
if(!skel->hasBone(node->name))
|
||||
bone = skel->createBone(node->name);
|
||||
else
|
||||
bone = skel->createBone();
|
||||
if(parent) parent->addChild(bone);
|
||||
|
||||
bone->setOrientation(node->trafo.rotation);
|
||||
|
|
Loading…
Reference in a new issue