diff options
Diffstat (limited to 'src/helpers')
| -rw-r--r-- | src/helpers/AnimatedVariable.hpp | 8 |
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); |
