|
|
|
@ -686,9 +686,9 @@ namespace MWRender
|
|
|
|
|
state.mAutoDisable = autodisable;
|
|
|
|
|
mStates[groupname] = state;
|
|
|
|
|
|
|
|
|
|
NifOsg::TextKeyMap::const_iterator textkey(textkeys.lower_bound(state.getTime()));
|
|
|
|
|
if (state.mPlaying)
|
|
|
|
|
{
|
|
|
|
|
NifOsg::TextKeyMap::const_iterator textkey(textkeys.lower_bound(state.getTime()));
|
|
|
|
|
while(textkey != textkeys.end() && textkey->first <= state.getTime())
|
|
|
|
|
{
|
|
|
|
|
handleTextKey(state, groupname, textkey, textkeys);
|
|
|
|
@ -976,14 +976,14 @@ namespace MWRender
|
|
|
|
|
|
|
|
|
|
while(!(velocity > 1.0f) && ++animiter != mAnimSources.rend())
|
|
|
|
|
{
|
|
|
|
|
const NifOsg::TextKeyMap &keys = (*animiter)->getTextKeys();
|
|
|
|
|
const NifOsg::TextKeyMap &keys2 = (*animiter)->getTextKeys();
|
|
|
|
|
|
|
|
|
|
const AnimSource::ControllerMap& ctrls2 = (*animiter)->mControllerMap[0];
|
|
|
|
|
for (AnimSource::ControllerMap::const_iterator it = ctrls2.begin(); it != ctrls2.end(); ++it)
|
|
|
|
|
{
|
|
|
|
|
if (Misc::StringUtils::ciEqual(it->first, mAccumRoot->getName()))
|
|
|
|
|
{
|
|
|
|
|
velocity = calcAnimVelocity(keys, it->second, mAccumulate, groupname);
|
|
|
|
|
velocity = calcAnimVelocity(keys2, it->second, mAccumulate, groupname);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|