Skip to content
Snippets Groups Projects
Commit 3963ea04 authored by Shon Ferguson's avatar Shon Ferguson
Browse files

Made a few fixes as I updated the Maya importer to the changes.

parent a0fdef2e
No related branches found
No related tags found
No related merge requests found
...@@ -129,6 +129,7 @@ attr_ref ABlock::GetAttr(string attr_name) { ...@@ -129,6 +129,7 @@ attr_ref ABlock::GetAttr(string attr_name) {
map<string, attr_ref>::iterator it; map<string, attr_ref>::iterator it;
it = _attr_map.find(attr_name); it = _attr_map.find(attr_name);
if (it == _attr_map.end()) { if (it == _attr_map.end()) {
//cout << "Requested Attribute does not exist: " << attr_name << endl;
return attr_ref(NULL); return attr_ref(NULL);
} else { } else {
return attr_ref((*it).second); return attr_ref((*it).second);
......
...@@ -104,7 +104,7 @@ public: ...@@ -104,7 +104,7 @@ public:
//Name Functions //Name Functions
virtual bool Namable() { return _namable; } virtual bool Namable() { return _namable; }
virtual void SetName( string & name ) { _name = name; } virtual void SetName( string name ) { _name = name; }
virtual string GetName() { return _name; } virtual string GetName() { return _name; }
//--Internal Functions--// //--Internal Functions--//
......
...@@ -52,6 +52,7 @@ using namespace std; ...@@ -52,6 +52,7 @@ using namespace std;
//--Forward Declarations of Classes & Structs--// //--Forward Declarations of Classes & Structs--//
class IAttr; class IAttr;
class IBlock; class IBlock;
class IShapeData;
class ITriShapeData; class ITriShapeData;
class ISkinData; class ISkinData;
class IKeyframeData; class IKeyframeData;
...@@ -131,6 +132,7 @@ unsigned int BlocksInMemory(); ...@@ -131,6 +132,7 @@ unsigned int BlocksInMemory();
//--Query Functions--// //--Query Functions--//
// These are shorthands for using QueryInterface, and required for scripting languages // These are shorthands for using QueryInterface, and required for scripting languages
IShapeData * QueryShapeData( blk_ref & block );
ITriShapeData * QueryTriShapeData( blk_ref & block ); ITriShapeData * QueryTriShapeData( blk_ref & block );
ISkinData * QuerySkinData( blk_ref & block ); ISkinData * QuerySkinData( blk_ref & block );
INode * QueryNode( blk_ref & block ); INode * QueryNode( blk_ref & block );
...@@ -382,7 +384,7 @@ public: ...@@ -382,7 +384,7 @@ public:
//Name Functions //Name Functions
virtual bool Namable() = 0; virtual bool Namable() = 0;
virtual void SetName( string & name ) = 0; virtual void SetName( string name ) = 0;
virtual string GetName() = 0; virtual string GetName() = 0;
protected: protected:
......
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