window: set config only when both props end anims

This commit is contained in:
Vaxry 2024-03-19 02:53:10 +00:00
parent e6532ba024
commit 7617c03dfd
1 changed files with 3 additions and 3 deletions

View File

@ -35,10 +35,10 @@ void setAnimToMove(void* data) {
CBaseAnimatedVariable* animvar = (CBaseAnimatedVariable*)data;
animvar->setConfig(PANIMCFG);
if (animvar->getWindow() && !animvar->getWindow()->m_vRealPosition.isBeingAnimated() && !animvar->getWindow()->m_vRealSize.isBeingAnimated())
if (animvar->getWindow() && !animvar->getWindow()->m_vRealPosition.isBeingAnimated() && !animvar->getWindow()->m_vRealSize.isBeingAnimated()) {
animvar->setConfig(PANIMCFG);
animvar->getWindow()->m_bAnimatingIn = false;
}
}
void Events::listener_mapWindow(void* owner, void* data) {