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

Fixed error in empty link stack detection and removed debug output.

Another fix for generated template.
parent 1adca0df
No related branches found
No related tags found
No related merge requests found
......@@ -12,10 +12,6 @@ All rights reserved. Please see niflib.h for licence. */
*/
template <class T >
struct KeyGroup {
/*! Default Constructor */
KeyGroup();
/*! Default Destructor */
~KeyGroup();
/*!
* Number of keys in the array.
*/
......
Source diff could not be displayed: it is too large. Options to address this: view the blob.
/* Copyright (c) 2006, NIF File Format Library and Tools
All rights reserved. Please see niflib.h for licence. */
#define DEBUG // this will produce lot's of output
//#define DEBUG // this will produce lots of output
#include "niflib.h"
#include "obj/NiAVObject.h"
......@@ -274,7 +274,7 @@ vector<NiObjectRef> ReadNifList( istream & in ) {
}
}
cout << endl << i << ": " << blockName;
//cout << endl << i << ": " << blockName;
//Create Block of the type that was found
blocks[i] = CreateBlock(blockName);
......@@ -295,7 +295,7 @@ vector<NiObjectRef> ReadNifList( istream & in ) {
//blocks[i]->SetBlockNum(i);
blocks[i]->Read( in, link_stack, version );
cout << endl << blocks[i]->asString() << endl;
//cout << endl << blocks[i]->asString() << endl;
}
//cout << endl;
......@@ -318,14 +318,14 @@ vector<NiObjectRef> ReadNifList( istream & in ) {
//}
cout << "Fixing Links:" << endl;
//--Now that all blocks are read, go back and fix the links--//
for (uint i = 0; i < blocks.size(); ++i) {
cout << blocks[i]->GetType().GetTypeName() << endl;
//Fix links & other pre-processing
blocks[i]->FixLinks( blocks, link_stack, version );
}
//cout << "Fixing Links:" << endl;
////--Now that all blocks are read, go back and fix the links--//
//for (uint i = 0; i < blocks.size(); ++i) {
//
// cout << blocks[i]->GetType().GetTypeName() << endl;
// //Fix links & other pre-processing
// blocks[i]->FixLinks( blocks, link_stack, version );
//}
////Build up the bind pose matricies into their world-space equivalents
//NiAVObjectRef av_root = DynamicCast<NiAVObject>( FindRoot(blocks) );
......
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