Skip to content
Snippets Groups Projects
Commit dc35c1cc authored by Alecu100's avatar Alecu100
Browse files

Fixed some small issues and now niflib compiles again

parent f75b8a04
No related branches found
No related tags found
No related merge requests found
...@@ -60,6 +60,18 @@ public: ...@@ -60,6 +60,18 @@ public:
*/ */
NIFLIB_API vector<float> GetFloatControlPoints() const; NIFLIB_API vector<float> GetFloatControlPoints() const;
/*!
* Sets the float control points representing the spline data
* \param[in] The new float control points to replace the current ones
*/
NIFLIB_API void SetFloatControlPoints(vector<float> value);
/*!
* Adds float control points at the end of the float control points collection
* \param[in] The float points to add at the end of the collection
*/
NIFLIB_API void AppendFloatControlPoints(vector<float> value);
/*! /*!
* Get Range of signed shorts representing the data scaled by SHRT_MAX. * Get Range of signed shorts representing the data scaled by SHRT_MAX.
* \param[in] offset The start of the range. * \param[in] offset The start of the range.
...@@ -74,6 +86,18 @@ public: ...@@ -74,6 +86,18 @@ public:
*/ */
NIFLIB_API vector<short> GetShortControlPoints() const; NIFLIB_API vector<short> GetShortControlPoints() const;
/*!
* Sets the short control points representing the spline data
* \param[in] The new short control points to replace the current ones
*/
NIFLIB_API void SetShortControlPoints(vector<short> value);
/*!
* Adds short control points at the end of the short control points collection
* \param[in] The short points to add at the end of the collection
*/
NIFLIB_API void AppendShortControlPoints(vector<short> value);
/*! /*!
* Get Range of signed shorts representing the data scaled by SHRT_MAX. * Get Range of signed shorts representing the data scaled by SHRT_MAX.
* \param[in] offset The start of the range. * \param[in] offset The start of the range.
......
...@@ -66,6 +66,18 @@ public: ...@@ -66,6 +66,18 @@ public:
*/ */
NIFLIB_API void SetTranslation( Vector3 value ); NIFLIB_API void SetTranslation( Vector3 value );
/*!
* Gets the translation offset for the control points in the NiSplineData
* \return The translation offset
*/
NIFLIB_API int GetTranslationOffset();
/*!
* Sets the translation offset for the control points in the NiSplineData
* \param[in] The new translation offset
*/
NIFLIB_API void SetTranslationOffset( int value );
/*! /*!
* Gets the base rotation when a translate curve is not defined. * Gets the base rotation when a translate curve is not defined.
* \return The base rotation. * \return The base rotation.
...@@ -78,6 +90,18 @@ public: ...@@ -78,6 +90,18 @@ public:
*/ */
NIFLIB_API void SetRotation( Quaternion value ); NIFLIB_API void SetRotation( Quaternion value );
/*!
* Gets the rotation offset for the control points in the NiSplineData
* \return The rotation offset
*/
NIFLIB_API int GetRotationOffset();
/*!
* Sets the rotation offset for the control points in the NiSplineData
* \param[in] The new rotation offset
*/
NIFLIB_API void SetRotationOffset( int value );
/*! /*!
* Gets the base scale when a translate curve is not defined. * Gets the base scale when a translate curve is not defined.
* \return The base scale. * \return The base scale.
...@@ -90,6 +114,18 @@ public: ...@@ -90,6 +114,18 @@ public:
*/ */
NIFLIB_API void SetScale( float value ); NIFLIB_API void SetScale( float value );
/*!
* Gets the scale offset for the control points in the NiSplineData
* \return The scale offset
*/
NIFLIB_API int GetScaleOffset();
/*!
* Sets the scale offset for the control points in the NiSplineData
* \param[in] The new scale offset
*/
NIFLIB_API void SetScaleOffset( int value );
/*! /*!
* Retrieves the control quaternion rotation data. * Retrieves the control quaternion rotation data.
......
...@@ -190,7 +190,7 @@ void NiBSplineData::SetShortControlPoints( vector<short> value ) ...@@ -190,7 +190,7 @@ void NiBSplineData::SetShortControlPoints( vector<short> value )
this->numShortControlPoints = value.size(); this->numShortControlPoints = value.size();
for(int i = 0; i < value.size(); i++) { for(int i = 0; i < value.size(); i++) {
this->shortControlPoints.push_back(value); this->shortControlPoints.push_back(value[i]);
} }
} }
......
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