mirror of
https://github.com/OpenMW/openmw.git
synced 2025-10-15 14:26:35 +00:00
Set a root for BS skins as well
This commit is contained in:
parent
8d7218c118
commit
e3c9e6fe2b
1 changed files with 2 additions and 0 deletions
|
@ -1732,6 +1732,8 @@ namespace NifOsg
|
|||
}
|
||||
rig->setBoneInfo(std::move(boneInfo));
|
||||
rig->setInfluences(influences);
|
||||
if (const Nif::NiAVObject* rootBone = skin->mRoot.getPtr())
|
||||
rig->setRootBone(rootBone->mName);
|
||||
|
||||
drawable = rig;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue