summaryrefslogtreecommitdiff
path: root/src/helpers
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-11-18 13:53:54 +0000
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-11-18 13:53:54 +0000
commitf91f3d1c81f89dc3fcb468672fbd0f1030d7b7ac (patch)
tree1ddb3f256134485ac94062099e0342dab34e399e /src/helpers
parent5d39223239d86479ffd9639661c92006f8ba6489 (diff)
Reset callbacks on remap
Diffstat (limited to 'src/helpers')
-rw-r--r--src/helpers/AnimatedVariable.hpp8
1 files changed, 8 insertions, 0 deletions
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);