Skip to content
Snippets Groups Projects
Commit 2ddfdbbf authored by Tazpn's avatar Tazpn
Browse files

niflib: add subshapes to hkPackedNiTriStripsData

parent 24b0e11e
No related branches found
No related tags found
No related merge requests found
......@@ -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? */
......
......@@ -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--//
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment