mirror of
https://github.com/hyprwm/hyprutils.git
synced 2025-05-13 05:40:40 +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 {
|
||||
public:
|
||||
void tick() {
|
||||
for (auto const& av : m_vActiveAnimatedVariables) {
|
||||
const auto PAV = av.lock();
|
||||
for (size_t i = 0; i < m_vActiveAnimatedVariables.size(); i++) {
|
||||
const auto PAV = m_vActiveAnimatedVariables[i].lock();
|
||||
if (!PAV || !PAV->ok())
|
||||
continue;
|
||||
|
||||
|
@ -80,7 +80,7 @@ class CMyAnimationManager : public CAnimationManager {
|
|||
} break;
|
||||
}
|
||||
|
||||
av->onUpdate();
|
||||
PAV->onUpdate();
|
||||
}
|
||||
|
||||
tickDone();
|
||||
|
|
Loading…
Reference in a new issue