mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-27 04:40:26 +00:00
Fixes #1293: Allow interpolation type 0 in case of 0 keys
This commit is contained in:
parent
b13b25dd1b
commit
45d2a00717
2 changed files with 7 additions and 1 deletions
|
@ -68,7 +68,8 @@ namespace MWRender
|
||||||
|
|
||||||
float HeadAnimationTime::getValue() const
|
float HeadAnimationTime::getValue() const
|
||||||
{
|
{
|
||||||
// TODO: Handle eye blinking (time is in the text keys)
|
// TODO use time from text keys (Talk Start/Stop, Blink Start/Stop)
|
||||||
|
// TODO: Handle eye blinking
|
||||||
if (MWBase::Environment::get().getSoundManager()->sayDone(mReference))
|
if (MWBase::Environment::get().getSoundManager()->sayDone(mReference))
|
||||||
return 0;
|
return 0;
|
||||||
else
|
else
|
||||||
|
|
|
@ -199,6 +199,11 @@ struct KeyListT {
|
||||||
key.mContinuity = nif->getFloat();
|
key.mContinuity = nif->getFloat();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (mInterpolationType == 0)
|
||||||
|
{
|
||||||
|
if (count != 0)
|
||||||
|
nif->file->fail("Interpolation type 0 doesn't work with keys");
|
||||||
|
}
|
||||||
else
|
else
|
||||||
nif->file->fail("Unhandled interpolation type: "+Ogre::StringConverter::toString(mInterpolationType));
|
nif->file->fail("Unhandled interpolation type: "+Ogre::StringConverter::toString(mInterpolationType));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue