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:
commit
f4cd7ff5b2
4 changed files with 24 additions and 1 deletions
|
@ -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…
Reference in a new issue