Make sure the old layer is cleared before starting the next

actorid
Chris Robinson 12 years ago
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++)
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…
Cancel
Save