mirror of
https://github.com/hyprwm/hyprlock.git
synced 2025-01-27 12:59: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() {
|
void CHyprlockAnimationManager::tick() {
|
||||||
static auto* const PANIMATIONSENABLED = (Hyprlang::INT* const*)g_pConfigManager->getValuePtr("animations:enabled");
|
static auto* const PANIMATIONSENABLED = (Hyprlang::INT* const*)g_pConfigManager->getValuePtr("animations:enabled");
|
||||||
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;
|
||||||
|
|
||||||
|
@ -111,7 +111,7 @@ void CHyprlockAnimationManager::tick() {
|
||||||
default: continue;
|
default: continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
av->onUpdate();
|
PAV->onUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
tickDone();
|
tickDone();
|
||||||
|
|
Loading…
Reference in a new issue