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