mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 11:53:51 +00:00
Make sure the old layer is cleared before starting the next
This commit is contained in:
parent
09fc50948b
commit
7eac37be23
1 changed files with 6 additions and 0 deletions
|
@ -524,6 +524,12 @@ bool Animation::play(const std::string &groupname, const std::string &start, con
|
||||||
for(std::vector<ObjectInfo>::iterator iter(mObjects.begin());iter != mObjects.end();iter++)
|
for(std::vector<ObjectInfo>::iterator iter(mObjects.begin());iter != mObjects.end();iter++)
|
||||||
iter->mActiveLayers &= ~(1<<layeridx);
|
iter->mActiveLayers &= ~(1<<layeridx);
|
||||||
|
|
||||||
|
mLayer[layeridx].mGroupName.clear();
|
||||||
|
mLayer[layeridx].mTextKeys = NULL;
|
||||||
|
mLayer[layeridx].mControllers = NULL;
|
||||||
|
mLayer[layeridx].mLoopCount = 0;
|
||||||
|
mLayer[layeridx].mPlaying = false;
|
||||||
|
|
||||||
bool movinganim = false;
|
bool movinganim = false;
|
||||||
bool foundanim = false;
|
bool foundanim = false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue