mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-18 13:12:50 +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->setDefaultTime(niFltAnimationNode->mInterval);
|
||||
sequenceNode->setMode(osg::Sequence::START);
|
||||
if (!niFltAnimationNode->flags & Nif::NiFltAnimationNode::Flag_Reverse)
|
||||
sequenceNode->setDuration(-1.0f, -1);
|
||||
if (niFltAnimationNode->flags & Nif::NiFltAnimationNode::Flag_Reverse)
|
||||
sequenceNode->setDuration(0.2f, -1);
|
||||
else
|
||||
sequenceNode->setDuration(1.0f, -1);
|
||||
sequenceNode->setDuration(-0.2f, -1);
|
||||
return sequenceNode;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user