mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 10:53:51 +00:00
Closes #888: Treat "Bip 01" as animation root if existing
This commit is contained in:
parent
439018e706
commit
bc376e6649
1 changed files with 11 additions and 0 deletions
|
@ -285,6 +285,17 @@ void Animation::addAnimSource(const std::string &model)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (grp == 0 && dstval->getNode()->getName() == "Bip01")
|
||||||
|
{
|
||||||
|
mNonAccumRoot = dstval->getNode();
|
||||||
|
mAccumRoot = mNonAccumRoot->getParent();
|
||||||
|
if(!mAccumRoot)
|
||||||
|
{
|
||||||
|
std::cerr<< "Non-Accum root for "<<mPtr.getCellRef().mRefID<<" is skeleton root??" <<std::endl;
|
||||||
|
mNonAccumRoot = NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ctrls[i].setSource(mAnimationTimePtr[grp]);
|
ctrls[i].setSource(mAnimationTimePtr[grp]);
|
||||||
grpctrls[grp].push_back(ctrls[i]);
|
grpctrls[grp].push_back(ctrls[i]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue