Skip to content
Snippets Groups Projects
Commit b4c88e06 authored by Alphax's avatar Alphax
Browse files

nif.xml: notes on some unknowns in NiGeometry, fix naming on NiVisData keys

niflib: update to nif.xml, set svn eol-style properties
parent 8ae61a89
No related branches found
No related tags found
No related merge requests found
......@@ -175,9 +175,9 @@ protected:
mutable unsigned int numMaterials;
/*! Unknown string. Shader? */
vector<IndexString > materialName;
/*! Unknown integer. */
vector<unsigned int > materialExtraData;
/*! Active Material. */
/*! Unknown integer; often -1. (Is this a link, array index?) */
vector<int > materialExtraData;
/*! Active Material; often -1. (Is this a link, array index?) */
int activeMaterial;
/*! Shader. */
bool hasShader;
......
......@@ -83,7 +83,7 @@ public:
//--END CUSTOM CODE--//
protected:
/*! The number of visibility keys that follow. */
mutable unsigned int numVisKeys;
mutable unsigned int numKeys;
/*! The visibility keys. */
vector<Key<byte > > keys;
public:
......
......@@ -19,7 +19,7 @@ using namespace Niflib;
//Definition of TYPE constant
const Type NiVisData::TYPE("NiVisData", &NiObject::TYPE );
NiVisData::NiVisData() : numVisKeys((unsigned int)0) {
NiVisData::NiVisData() : numKeys((unsigned int)0) {
//--BEGIN CONSTRUCTOR CUSTOM CODE--//
//--END CUSTOM CODE--//
}
......@@ -42,8 +42,8 @@ void NiVisData::Read( istream& in, list<unsigned int> & link_stack, const NifInf
//--END CUSTOM CODE--//
NiObject::Read( in, link_stack, info );
NifStream( numVisKeys, in, info );
keys.resize(numVisKeys);
NifStream( numKeys, in, info );
keys.resize(numKeys);
for (unsigned int i1 = 0; i1 < keys.size(); i1++) {
NifStream( keys[i1], in, info, 1 );
};
......@@ -57,8 +57,8 @@ void NiVisData::Write( ostream& out, const map<NiObjectRef,unsigned int> & link_
//--END CUSTOM CODE--//
NiObject::Write( out, link_map, info );
numVisKeys = (unsigned int)(keys.size());
NifStream( numVisKeys, out, info );
numKeys = (unsigned int)(keys.size());
NifStream( numKeys, out, info );
for (unsigned int i1 = 0; i1 < keys.size(); i1++) {
NifStream( keys[i1], out, info, 1 );
};
......@@ -74,8 +74,8 @@ std::string NiVisData::asString( bool verbose ) const {
stringstream out;
unsigned int array_output_count = 0;
out << NiObject::asString();
numVisKeys = (unsigned int)(keys.size());
out << " Num Vis Keys: " << numVisKeys << endl;
numKeys = (unsigned int)(keys.size());
out << " Num Keys: " << numKeys << endl;
array_output_count = 0;
for (unsigned int i1 = 0; i1 < keys.size(); i1++) {
if ( !verbose && ( array_output_count > MAXARRAYDUMP ) ) {
......
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