From efc5a1711f17e8f80a3443482c9adfc85d2f9675 Mon Sep 17 00:00:00 2001
From: Tazpn <tazpn@users.sourceforge.net>
Date: Sat, 2 Jun 2007 18:52:09 +0000
Subject: [PATCH] Add SetMaterial/GetMaterial helpers to bhkNiTriStripsShape

---
 include/obj/bhkNiTriStripsShape.h | 12 ++++++++++++
 src/obj/bhkNiTriStripsShape.cpp   |  8 ++++++++
 2 files changed, 20 insertions(+)

diff --git a/include/obj/bhkNiTriStripsShape.h b/include/obj/bhkNiTriStripsShape.h
index 20183de5..f8029d19 100644
--- a/include/obj/bhkNiTriStripsShape.h
+++ b/include/obj/bhkNiTriStripsShape.h
@@ -85,6 +85,18 @@ public:
 	 */
 	NIFLIB_API void	SetStripsData( int index, NiTriStripsData * strips );
 
+	/*!
+	* Get the shape's material.  This determines the type of noises the object makes as it collides in Oblivion.
+	* \return The Oblivion material used by this collision shape.
+	*/
+	NIFLIB_API HavokMaterial GetMaterial() const;
+
+	/*!
+	* Sets the shape's material.  This determines the type of noises the object makes as it collides in Oblivion.
+	* \param[in] value The new material for this shape to use.
+	*/
+	NIFLIB_API void SetMaterial( HavokMaterial value );
+
 	//--END CUSTOM CODE--//
 protected:
 	/*! The shape's material. */
diff --git a/src/obj/bhkNiTriStripsShape.cpp b/src/obj/bhkNiTriStripsShape.cpp
index 6db9ad0f..4bb722a7 100644
--- a/src/obj/bhkNiTriStripsShape.cpp
+++ b/src/obj/bhkNiTriStripsShape.cpp
@@ -219,4 +219,12 @@ void bhkNiTriStripsShape::SetScale( const Vector3 & n ) {
 	scale = n;	
 }
 
+HavokMaterial bhkNiTriStripsShape::GetMaterial() const {
+	return material;
+}
+
+void bhkNiTriStripsShape::SetMaterial( HavokMaterial value ) {
+	material = value;
+}
+
 //--END CUSTOM CODE--//
-- 
GitLab