Read BSFrustumFOVController and BSKeyframeController

macos_ci_fix
Alexei Kotov 1 year ago
parent 5f504688ad
commit e207285323

@ -486,6 +486,20 @@ namespace Nif
nif->read(mControlledColor);
}
void BSKeyframeController::read(NIFStream* nif)
{
NiKeyframeController::read(nif);
mData2.read(nif);
}
void BSKeyframeController::post(Reader& nif)
{
NiKeyframeController::post(nif);
mData2.post(nif);
}
void NiControllerManager::read(NIFStream* nif)
{
NiTimeController::read(nif);

@ -319,6 +319,14 @@ namespace Nif
void read(NIFStream* nif) override;
};
struct BSKeyframeController : NiKeyframeController
{
NiKeyframeDataPtr mData2;
void read(NIFStream* nif) override;
void post(Reader& nif) override;
};
struct NiControllerManager : public NiTimeController
{
bool mCumulative;

@ -123,6 +123,8 @@ namespace Nif
&construct<NiMultiTargetTransformController, RC_NiMultiTargetTransformController> },
// Bethesda
{ "BSFrustumFOVController", &construct<NiFloatInterpController, RC_BSFrustumFOVController> },
{ "BSKeyframeController", &construct<BSKeyframeController, RC_BSKeyframeController> },
{ "BSMaterialEmittanceMultController",
&construct<NiFloatInterpController, RC_BSMaterialEmittanceMultController> },
{ "BSRefractionFirePeriodController",

@ -69,8 +69,10 @@ namespace Nif
RC_BSEffectShaderPropertyColorController,
RC_BSEffectShaderPropertyFloatController,
RC_BSExtraData,
RC_BSFrustumFOVController,
RC_BSFurnitureMarker,
RC_BSInvMarker,
RC_BSKeyframeController,
RC_BSLightingShaderProperty,
RC_BSLightingShaderPropertyColorController,
RC_BSLightingShaderPropertyFloatController,

Loading…
Cancel
Save