From 3963ea043d292229b07583fbb5c18132b7dc4443 Mon Sep 17 00:00:00 2001
From: Shon Ferguson <shonferg@users.sourceforge.net>
Date: Mon, 14 Nov 2005 00:29:28 +0000
Subject: [PATCH] Made a few fixes as I updated the Maya importer to the
 changes.

---
 NIF_Blocks.cpp | 1 +
 NIF_Blocks.h   | 2 +-
 niflib.h       | 4 +++-
 3 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/NIF_Blocks.cpp b/NIF_Blocks.cpp
index 5d3e7e68..2441fc5a 100644
--- a/NIF_Blocks.cpp
+++ b/NIF_Blocks.cpp
@@ -129,6 +129,7 @@ attr_ref ABlock::GetAttr(string attr_name) {
 	map<string, attr_ref>::iterator it;
 	it = _attr_map.find(attr_name);
 	if (it == _attr_map.end()) {
+		//cout << "Requested Attribute does not exist:  " << attr_name << endl;
 		return attr_ref(NULL);
 	} else {
 		return attr_ref((*it).second);
diff --git a/NIF_Blocks.h b/NIF_Blocks.h
index ef594906..c1638c6d 100644
--- a/NIF_Blocks.h
+++ b/NIF_Blocks.h
@@ -104,7 +104,7 @@ public:
 
 	//Name Functions
 	virtual bool Namable() { return _namable; }
-	virtual void SetName( string & name ) { _name = name; }
+	virtual void SetName( string name ) { _name = name; }
 	virtual string GetName() { return _name; }
 
 	//--Internal Functions--//
diff --git a/niflib.h b/niflib.h
index 1706e550..03c8cb85 100644
--- a/niflib.h
+++ b/niflib.h
@@ -52,6 +52,7 @@ using namespace std;
 //--Forward Declarations of Classes & Structs--//
 class IAttr;
 class IBlock;
+class IShapeData;
 class ITriShapeData;
 class ISkinData;
 class IKeyframeData;
@@ -131,6 +132,7 @@ unsigned int BlocksInMemory();
 
 //--Query Functions--//
 // These are shorthands for using QueryInterface, and required for scripting languages
+IShapeData * QueryShapeData( blk_ref & block );
 ITriShapeData * QueryTriShapeData( blk_ref & block );
 ISkinData * QuerySkinData( blk_ref & block );
 INode * QueryNode( blk_ref & block );
@@ -382,7 +384,7 @@ public:
 
 	//Name Functions
 	virtual bool Namable() = 0;
-	virtual void SetName( string & name ) = 0;
+	virtual void SetName( string name ) = 0;
 	virtual string GetName() = 0;
 	
 protected:
-- 
GitLab