mirror of
https://github.com/hyprwm/hyprlock.git
synced 2025-01-26 04:19:48 +01:00
animation: allow adding vars during ::tick (#644)
This commit is contained in:
parent
a5e346783f
commit
e84267085d
1 changed files with 3 additions and 3 deletions
|
@ -77,8 +77,8 @@ void updateGradientVariable(CAnimatedVariable<CGradientValueData>& av, const flo
|
|||
|
||||
void CHyprlockAnimationManager::tick() {
|
||||
static auto* const PANIMATIONSENABLED = (Hyprlang::INT* const*)g_pConfigManager->getValuePtr("animations:enabled");
|
||||
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;
|
||||
|
||||
|
@ -111,7 +111,7 @@ void CHyprlockAnimationManager::tick() {
|
|||
default: continue;
|
||||
}
|
||||
|
||||
av->onUpdate();
|
||||
PAV->onUpdate();
|
||||
}
|
||||
|
||||
tickDone();
|
||||
|
|
Loading…
Reference in a new issue