diff --git a/include/obj/hkPackedNiTriStripsData.h b/include/obj/hkPackedNiTriStripsData.h index f1aa983c2c85b9200d4577ad49f5873169fc91d0..2fd86f3b691bf55ad6211565f967a304dd6a538a 100644 --- a/include/obj/hkPackedNiTriStripsData.h +++ b/include/obj/hkPackedNiTriStripsData.h @@ -109,6 +109,18 @@ public: */ NIFLIB_API virtual void SetVertices( const vector<Vector3> & in ); + /*! + * Retrieves the subshape data object used by this geometry node, if any. + * \return The subshape data object. + */ + NIFLIB_API vector<OblivionSubShape> GetSubShapes() const; + + /*! + * Sets the subshape data object used by this geometry node. + * \param[in] value The subshape data. + */ + NIFLIB_API void SetSubShapes( vector<OblivionSubShape>& value ); + //--END CUSTOM CODE--// protected: /*! Number of triangles? */ diff --git a/src/obj/hkPackedNiTriStripsData.cpp b/src/obj/hkPackedNiTriStripsData.cpp index 4e8aad5e3e14294fceb072ef6e9648a08081b05a..454dd8fce7dfa0866cfafd7b2bff5d3fd81d1e56 100644 --- a/src/obj/hkPackedNiTriStripsData.cpp +++ b/src/obj/hkPackedNiTriStripsData.cpp @@ -253,4 +253,14 @@ void hkPackedNiTriStripsData::SetVertices( const vector<Vector3> & in ) { vertices = in; } +vector<OblivionSubShape> hkPackedNiTriStripsData::GetSubShapes() const { + return subShapes; +} + +void hkPackedNiTriStripsData::SetSubShapes( vector<OblivionSubShape>& value ) { + numSubShapes = value.size(); + subShapes = value; +} + + //--END CUSTOM CODE--//