aboutsummaryrefslogtreecommitdiff
path: root/scene/animation/animation_player.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2018-01-12 08:28:39 -0300
committerJuan Linietsky2018-01-12 08:29:24 -0300
commita26e6c82159c290a53c463dc4714789fc25391c2 (patch)
treebcc9315c5efff9f34b5de03abedd73dbbe14acfe /scene/animation/animation_player.cpp
parentbaef1e71c76c7989b950ddb2e60820db35e71957 (diff)
downloadgodot-a26e6c82159c290a53c463dc4714789fc25391c2.tar.gz
godot-a26e6c82159c290a53c463dc4714789fc25391c2.tar.zst
godot-a26e6c82159c290a53c463dc4714789fc25391c2.zip
Diffstat (limited to 'scene/animation/animation_player.cpp')
-rw-r--r--scene/animation/animation_player.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/animation/animation_player.cpp b/scene/animation/animation_player.cpp
index 2a276981d..0a051cdb9 100644
--- a/scene/animation/animation_player.cpp
+++ b/scene/animation/animation_player.cpp
@@ -261,8 +261,8 @@ void AnimationPlayer::_ensure_node_caches(AnimationData *p_anim) {
}
{
- if (!child->is_connected("tree_exited", this, "_node_removed"))
- child->connect("tree_exited", this, "_node_removed", make_binds(child), CONNECT_ONESHOT);
+ if (!child->is_connected("tree_exiting", this, "_node_removed"))
+ child->connect("tree_exiting", this, "_node_removed", make_binds(child), CONNECT_ONESHOT);
}
TrackNodeCacheKey key;