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

View file

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