mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 15:41:13 -04:00
Treat "Root Bone" as the animation root if existing (Fixes #2019)
This commit is contained in:
parent
8233f5894a
commit
415f67f859
@ -298,7 +298,7 @@ void Animation::addAnimSource(const std::string &model)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (grp == 0 && dstval->getNode()->getName() == "Bip01")
|
if (grp == 0 && (dstval->getNode()->getName() == "Bip01" || dstval->getNode()->getName() == "Root Bone"))
|
||||||
{
|
{
|
||||||
mNonAccumRoot = dstval->getNode();
|
mNonAccumRoot = dstval->getNode();
|
||||||
mAccumRoot = mNonAccumRoot->getParent();
|
mAccumRoot = mNonAccumRoot->getParent();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user