From ff0f535c28018eeb5164f3576904748b73136202 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Thu, 12 May 2022 11:27:31 +0200 Subject: Added workspace animations --- src/helpers/AnimatedVariable.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/helpers/AnimatedVariable.cpp') diff --git a/src/helpers/AnimatedVariable.cpp b/src/helpers/AnimatedVariable.cpp index 9e93ba3c..1e9dd74e 100644 --- a/src/helpers/AnimatedVariable.cpp +++ b/src/helpers/AnimatedVariable.cpp @@ -52,5 +52,9 @@ void CAnimatedVariable::create(ANIMATEDVARTYPE type, std::any val, float* speed, } CAnimatedVariable::~CAnimatedVariable() { + unregister(); +} + +void CAnimatedVariable::unregister() { g_pAnimationManager->m_lAnimatedVariables.remove(this); } \ No newline at end of file -- cgit v1.2.3