Read NiVisData info

actorid
Chris Robinson 12 years ago
parent 12fada2862
commit bf0ae3ae72

@ -297,13 +297,17 @@ public:
float time; float time;
char isSet; char isSet;
}; };
std::vector<VisData> mVis;
void read(NIFStream *nif) void read(NIFStream *nif)
{ {
int count = nif->getInt(); int count = nif->getInt();
mVis.resize(count);
/* Skip VisData */ for(size_t i = 0;i < mVis.size();i++)
nif->skip(count*5); {
mVis[i].time = nif->getFloat();
mVis[i].isSet = nif->getChar();
}
} }
}; };

Loading…
Cancel
Save