Handle NiLookAtController (feature #4407)

pull/1690/head
Andrei Kortunov 7 years ago
parent 1f1f47431f
commit 5afcc56860

@ -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);

@ -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:

@ -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;
}

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

Loading…
Cancel
Save