1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 18:19:55 +00:00

Merge pull request #1690

This commit is contained in:
scrawl 2018-04-29 14:24:56 +00:00
commit f4cd7ff5b2
No known key found for this signature in database
GPG key ID: 2E6CC3676024C402
4 changed files with 24 additions and 1 deletions

View file

@ -101,6 +101,18 @@ namespace Nif
data.post(nif);
}
void NiLookAtController::read(NIFStream *nif)
{
Controller::read(nif);
data.read(nif);
}
void NiLookAtController::post(NIFFile *nif)
{
Controller::post(nif);
data.post(nif);
}
void NiPathController::read(NIFStream *nif)
{
Controller::read(nif);

View file

@ -99,6 +99,15 @@ public:
void post(NIFFile *nif);
};
class NiLookAtController : public Controller
{
public:
NiKeyframeDataPtr data;
void read(NIFStream *nif);
void post(NIFFile *nif);
};
class NiUVController : public Controller
{
public:

View file

@ -108,6 +108,7 @@ static std::map<std::string,RecordFactoryEntry> makeFactory()
newFactory.insert(makeEntry("NiSequenceStreamHelper", &construct <NiSequenceStreamHelper> , RC_NiSequenceStreamHelper ));
newFactory.insert(makeEntry("NiSourceTexture", &construct <NiSourceTexture> , RC_NiSourceTexture ));
newFactory.insert(makeEntry("NiSkinInstance", &construct <NiSkinInstance> , RC_NiSkinInstance ));
newFactory.insert(makeEntry("NiLookAtController", &construct <NiLookAtController> , RC_NiLookAtController ));
return newFactory;
}

View file

@ -93,7 +93,8 @@ enum RecordType
RC_NiSourceTexture,
RC_NiSkinInstance,
RC_RootCollisionNode,
RC_NiSphericalCollider
RC_NiSphericalCollider,
RC_NiLookAtController
};
/// Base class for all records