mirror of
https://github.com/hyprwm/hyprutils.git
synced 2025-05-13 13:50:44 +01:00
animation: fix addding vars in ::tick
This commit is contained in:
parent
1507865397
commit
f020e5d4ad
1 changed files with 3 additions and 3 deletions
|
@ -43,8 +43,8 @@ CAnimationConfigTree animationTree;
|
||||||
class CMyAnimationManager : public CAnimationManager {
|
class CMyAnimationManager : public CAnimationManager {
|
||||||
public:
|
public:
|
||||||
void tick() {
|
void tick() {
|
||||||
for (auto const& av : m_vActiveAnimatedVariables) {
|
for (size_t i = 0; i < m_vActiveAnimatedVariables.size(); i++) {
|
||||||
const auto PAV = av.lock();
|
const auto PAV = m_vActiveAnimatedVariables[i].lock();
|
||||||
if (!PAV || !PAV->ok())
|
if (!PAV || !PAV->ok())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
@ -80,7 +80,7 @@ class CMyAnimationManager : public CAnimationManager {
|
||||||
} break;
|
} break;
|
||||||
}
|
}
|
||||||
|
|
||||||
av->onUpdate();
|
PAV->onUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
tickDone();
|
tickDone();
|
||||||
|
|
Loading…
Reference in a new issue