From f91f3d1c81f89dc3fcb468672fbd0f1030d7b7ac Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Fri, 18 Nov 2022 13:53:54 +0000 Subject: Reset callbacks on remap --- src/helpers/AnimatedVariable.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/helpers') diff --git a/src/helpers/AnimatedVariable.hpp b/src/helpers/AnimatedVariable.hpp index 2c2c3ccf..ab1dcf42 100644 --- a/src/helpers/AnimatedVariable.hpp +++ b/src/helpers/AnimatedVariable.hpp @@ -205,6 +205,14 @@ public: m_bRemoveBeginAfterRan = remove; } + /* resets all callbacks. Does not call any. */ + void resetAllCallbacks() { + m_fBeginCallback = nullptr; + m_fEndCallback = nullptr; + m_bRemoveBeginAfterRan = false; + m_bRemoveEndAfterRan = false; + } + private: Vector2D m_vValue = Vector2D(0,0); -- cgit v1.2.3