mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 18:35:20 +00:00
Make sure the old layer is cleared before starting the next
This commit is contained in:
parent
09fc50948b
commit
7eac37be23
@ -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…
x
Reference in New Issue
Block a user