mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +00:00
reverse the reverse flag check; set duration to 0.2f which matches openmw to morrowind speed which is measured in 1/5 seconds
This commit is contained in:
parent
0db5415976
commit
af41560c3f
@ -423,10 +423,10 @@ namespace NifOsg
|
|||||||
sequenceNode->setName(niFltAnimationNode->name);
|
sequenceNode->setName(niFltAnimationNode->name);
|
||||||
sequenceNode->setDefaultTime(niFltAnimationNode->mInterval);
|
sequenceNode->setDefaultTime(niFltAnimationNode->mInterval);
|
||||||
sequenceNode->setMode(osg::Sequence::START);
|
sequenceNode->setMode(osg::Sequence::START);
|
||||||
if (!niFltAnimationNode->flags & Nif::NiFltAnimationNode::Flag_Reverse)
|
if (niFltAnimationNode->flags & Nif::NiFltAnimationNode::Flag_Reverse)
|
||||||
sequenceNode->setDuration(-1.0f, -1);
|
sequenceNode->setDuration(0.2f, -1);
|
||||||
else
|
else
|
||||||
sequenceNode->setDuration(1.0f, -1);
|
sequenceNode->setDuration(-0.2f, -1);
|
||||||
return sequenceNode;
|
return sequenceNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user