diff --git a/components/nif/extra.cpp b/components/nif/extra.cpp index 1cc5f68d43..0e93f1a0ce 100644 --- a/components/nif/extra.cpp +++ b/components/nif/extra.cpp @@ -138,4 +138,12 @@ namespace Nif mRotation = osg::Quat(rotX, osg::X_AXIS, rotY, osg::Y_AXIS, rotZ, osg::Z_AXIS); } + + void BSBehaviorGraphExtraData::read(NIFStream* nif) + { + Extra::read(nif); + mFile = nif->getString(); + mControlsBaseSkeleton = nif->getBoolean(); + } + } diff --git a/components/nif/extra.hpp b/components/nif/extra.hpp index f0120565c7..b59fb2f76a 100644 --- a/components/nif/extra.hpp +++ b/components/nif/extra.hpp @@ -154,5 +154,13 @@ namespace Nif void read(NIFStream* nif) override; }; + struct BSBehaviorGraphExtraData : public Extra + { + std::string mFile; + bool mControlsBaseSkeleton; + + void read(NIFStream* nif) override; + }; + } // Namespace #endif diff --git a/components/nif/niffile.cpp b/components/nif/niffile.cpp index 152646f4a8..c74c9cf790 100644 --- a/components/nif/niffile.cpp +++ b/components/nif/niffile.cpp @@ -211,6 +211,7 @@ namespace Nif &construct }, { "BSLightingShaderPropertyColorController", &construct }, + { "BSBehaviorGraphExtraData", &construct }, }; } diff --git a/components/nif/record.hpp b/components/nif/record.hpp index 78acf0db77..36fdaf81d3 100644 --- a/components/nif/record.hpp +++ b/components/nif/record.hpp @@ -172,6 +172,7 @@ namespace Nif RC_BSEffectShaderPropertyColorController, RC_BSLightingShaderPropertyFloatController, RC_BSLightingShaderPropertyColorController, + RC_BSBehaviorGraphExtraData, }; /// Base class for all records