mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 20:53:50 +00:00
Read NiVisData info
This commit is contained in:
parent
12fada2862
commit
bf0ae3ae72
1 changed files with 7 additions and 3 deletions
|
@ -297,13 +297,17 @@ public:
|
|||
float time;
|
||||
char isSet;
|
||||
};
|
||||
std::vector<VisData> mVis;
|
||||
|
||||
void read(NIFStream *nif)
|
||||
{
|
||||
int count = nif->getInt();
|
||||
|
||||
/* Skip VisData */
|
||||
nif->skip(count*5);
|
||||
mVis.resize(count);
|
||||
for(size_t i = 0;i < mVis.size();i++)
|
||||
{
|
||||
mVis[i].time = nif->getFloat();
|
||||
mVis[i].isSet = nif->getChar();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue