mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-25 22:45:57 +01:00
parent
60f81b8a23
commit
e2c286548d
1 changed files with 3 additions and 0 deletions
|
@ -75,6 +75,9 @@ float CAnimatedVariable::getPercent() {
|
|||
}
|
||||
|
||||
float CAnimatedVariable::getCurveValue() {
|
||||
if (!m_bIsBeingAnimated)
|
||||
return 1.f;
|
||||
|
||||
const auto SPENT = getPercent();
|
||||
|
||||
if (SPENT >= 1.f)
|
||||
|
|
Loading…
Reference in a new issue