forked from teamnwah/openmw-tes3coop
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++)
|
||||
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 foundanim = false;
|
||||
|
||||
|
|
Loading…
Reference in a new issue