1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-30 20:45:35 +00:00

refactor to use mInternal, support Flag_Reverse and updated changelog/authors.md

This commit is contained in:
Bret Curtis 2022-03-30 09:27:00 +02:00
parent ead73fce31
commit 0db5415976
5 changed files with 18 additions and 10 deletions

View file

@ -164,6 +164,7 @@ Programmers
Nialsy Nialsy
Nick Crawford (nighthawk469) Nick Crawford (nighthawk469)
Nikolay Kasyanov (corristo) Nikolay Kasyanov (corristo)
Noah Gooder
nobrakal nobrakal
Nolan Poe (nopoe) Nolan Poe (nopoe)
Nurivan Gomez (Nuri-G) Nurivan Gomez (Nuri-G)
@ -228,14 +229,14 @@ Programmers
viadanna viadanna
Vincent Heuken Vincent Heuken
Vladimir Panteleev (CyberShadow) Vladimir Panteleev (CyberShadow)
vocollapse
Wang Ryu (bzzt) Wang Ryu (bzzt)
Will Herrmann (Thunderforge) Will Herrmann (Thunderforge)
vocollapse Wolfgang Lieff
xyzz xyzz
Yohaulticetl Yohaulticetl
Yuri Krupenin Yuri Krupenin
zelurker zelurker
Noah Gooder
Documentation Documentation
------------- -------------

View file

@ -138,11 +138,12 @@
Feature #6288: Preserve the "blocked" record flag for referenceable objects. Feature #6288: Preserve the "blocked" record flag for referenceable objects.
Feature #6380: Commas are treated as whitespace in vanilla Feature #6380: Commas are treated as whitespace in vanilla
Feature #6419: Topics shouldn't be greyed out if they can produce another topic reference Feature #6419: Topics shouldn't be greyed out if they can produce another topic reference
Feature #6443: NiStencilProperty is not fully supported Feature #6443: Support NiStencilProperty
Feature #6534: Shader-based object texture blending Feature #6534: Shader-based object texture blending
Feature #6541: Gloss-mapping Feature #6541: Gloss-mapping
Feature #6592: Missing support for NiTriShape particle emitters Feature #6592: Missing support for NiTriShape particle emitters
Feature #6600: Support NiSortAdjustNode Feature #6600: Support NiSortAdjustNode
Feature #6684: Support NiFltAnimationNode
Task #6201: Remove the "Note: No relevant classes found. No output generated" warnings Task #6201: Remove the "Note: No relevant classes found. No output generated" warnings
Task #6264: Remove the old classes in animation.cpp Task #6264: Remove the old classes in animation.cpp
Task #6553: Simplify interpreter instruction registration Task #6553: Simplify interpreter instruction registration

View file

@ -2,7 +2,6 @@
#include <unordered_map> #include <unordered_map>
#include <osg/Version>
#include <osg/LOD> #include <osg/LOD>
#include <osg/Switch> #include <osg/Switch>
#include <osg/Sequence> #include <osg/Sequence>
@ -66,7 +65,7 @@ namespace MWRender
case ESM::REC_CONT: case ESM::REC_CONT:
return store.get<ESM::Container>().searchStatic(id)->mModel; return store.get<ESM::Container>().searchStatic(id)->mModel;
default: default:
return std::string(); return {};
} }
} }

View file

@ -433,12 +433,17 @@ struct NiLODNode : public NiSwitchNode
struct NiFltAnimationNode : public NiSwitchNode struct NiFltAnimationNode : public NiSwitchNode
{ {
float Interval; float mInterval;
enum Flags
{
Flag_Reverse = 0x40
};
void read(NIFStream *nif) override void read(NIFStream *nif) override
{ {
NiSwitchNode::read(nif); NiSwitchNode::read(nif);
Interval = nif->getFloat(); mInterval = nif->getFloat();
} }
}; };

View file

@ -421,10 +421,12 @@ namespace NifOsg
{ {
osg::ref_ptr<osg::Sequence> sequenceNode (new osg::Sequence); osg::ref_ptr<osg::Sequence> sequenceNode (new osg::Sequence);
sequenceNode->setName(niFltAnimationNode->name); sequenceNode->setName(niFltAnimationNode->name);
sequenceNode->setDefaultTime(niFltAnimationNode->Interval); sequenceNode->setDefaultTime(niFltAnimationNode->mInterval);
sequenceNode->setInterval(osg::Sequence::LOOP, 0,-1);
sequenceNode->setDuration( -1.0f, -1);
sequenceNode->setMode(osg::Sequence::START); sequenceNode->setMode(osg::Sequence::START);
if (!niFltAnimationNode->flags & Nif::NiFltAnimationNode::Flag_Reverse)
sequenceNode->setDuration(-1.0f, -1);
else
sequenceNode->setDuration(1.0f, -1);
return sequenceNode; return sequenceNode;
} }