summaryrefslogtreecommitdiffstats
path: root/scene/animation/tween.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-05-22 13:48:47 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-05-22 13:48:47 +0200
commit7a176459b10d7b095620f67ab4843f4949e04095 (patch)
tree7cc08c6102893a1e348b19de986e2e042bbb8b6b /scene/animation/tween.cpp
parent0f0f233d37cf011e595d50607ae6f889fe92bfcd (diff)
parent780e21bcacd66de9bde038ae9cd31d80f700f16a (diff)
downloadredot-engine-7a176459b10d7b095620f67ab4843f4949e04095.tar.gz
Merge pull request #76899 from rakkarage/spring-tween
Add TRANS_SPRING to Tween
Diffstat (limited to 'scene/animation/tween.cpp')
-rw-r--r--scene/animation/tween.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/animation/tween.cpp b/scene/animation/tween.cpp
index 8266cfbd43..96e5da5a40 100644
--- a/scene/animation/tween.cpp
+++ b/scene/animation/tween.cpp
@@ -50,6 +50,7 @@ Tween::interpolater Tween::interpolaters[Tween::TRANS_MAX][Tween::EASE_MAX] = {
{ &circ::in, &circ::out, &circ::in_out, &circ::out_in },
{ &bounce::in, &bounce::out, &bounce::in_out, &bounce::out_in },
{ &back::in, &back::out, &back::in_out, &back::out_in },
+ { &spring::in, &spring::out, &spring::in_out, &spring::out_in },
};
void Tweener::set_tween(const Ref<Tween> &p_tween) {
@@ -483,6 +484,7 @@ void Tween::_bind_methods() {
BIND_ENUM_CONSTANT(TRANS_CIRC);
BIND_ENUM_CONSTANT(TRANS_BOUNCE);
BIND_ENUM_CONSTANT(TRANS_BACK);
+ BIND_ENUM_CONSTANT(TRANS_SPRING);
BIND_ENUM_CONSTANT(EASE_IN);
BIND_ENUM_CONSTANT(EASE_OUT);