Skip to content
Snippets Groups Projects
Commit 62d881db authored by Amorilia's avatar Amorilia
Browse files

Store block number in NiObject when reading a nif file.

parent 9b809593
No related branches found
No related tags found
No related merge requests found
......@@ -88,6 +88,10 @@ public:
NIFLIB_HIDDEN virtual void FixLinks( const map<unsigned int,NiObjectRef> & objects, list<unsigned int> & link_stack, const NifInfo & info );
/*! NIFLIB_HIDDEN function. For internal use only. */
NIFLIB_HIDDEN virtual list<NiObjectRef> GetRefs() const;
/*! Block number in the nif file. Only set when you read
blocks from the file. */
int internal_block_number;
};
//--BEGIN FILE FOOT CUSTOM CODE--//
......
......@@ -318,6 +318,9 @@ vector<NiObjectRef> ReadNifList( istream & in, NifInfo * info ) {
//Add object to list
obj_list.push_back(new_obj);
//Store block number
new_obj->internal_block_number = index;
// Ending position of block in stream
std::streampos endobjpos = in.tellg();
......
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