From 589726d4f8ec1489731cb5c95a8ee8f6a929594b Mon Sep 17 00:00:00 2001 From: alekulyn Date: Mon, 10 Jul 2023 18:12:00 -0500 Subject: [PATCH] Enchanting table fully ready --- components/nif/controller.cpp | 6 ++++++ components/nif/controller.hpp | 7 +++++++ components/nif/niffile.cpp | 4 ++++ components/nif/record.hpp | 1 + 4 files changed, 18 insertions(+) diff --git a/components/nif/controller.cpp b/components/nif/controller.cpp index 8dfdebb923..45b734c189 100644 --- a/components/nif/controller.cpp +++ b/components/nif/controller.cpp @@ -643,4 +643,10 @@ namespace Nif NiFloatInterpController::read(nif); nif->read(mControlledVariable); } + + void BSEffectShaderPropertyColorController::read(NIFStream* nif) + { + NiPoint3InterpController::read(nif); + nif->read(mControlledColor); + } } diff --git a/components/nif/controller.hpp b/components/nif/controller.hpp index 40f0d9a949..2ec4dcb439 100644 --- a/components/nif/controller.hpp +++ b/components/nif/controller.hpp @@ -412,5 +412,12 @@ namespace Nif void read(NIFStream* nif) override; }; + + struct BSEffectShaderPropertyColorController : public NiPoint3InterpController + { + unsigned int mControlledColor; + + void read(NIFStream* nif) override; + }; } // Namespace #endif diff --git a/components/nif/niffile.cpp b/components/nif/niffile.cpp index 3034df7aab..1dbd14daeb 100644 --- a/components/nif/niffile.cpp +++ b/components/nif/niffile.cpp @@ -200,6 +200,10 @@ namespace Nif { "BSTriShape", &construct }, { "BSEffectShaderPropertyFloatController", &construct }, + { "BSLightingShaderPropertyFloatController", + &construct }, + { "BSEffectShaderPropertyColorController", + &construct }, }; } diff --git a/components/nif/record.hpp b/components/nif/record.hpp index 4a57070924..a27c309f11 100644 --- a/components/nif/record.hpp +++ b/components/nif/record.hpp @@ -166,6 +166,7 @@ namespace Nif RC_BSInvMarker, RC_BSTriShape, RC_BSEffectShaderPropertyFloatController, + RC_BSEffectShaderPropertyColorController, }; /// Base class for all records