summaryrefslogtreecommitdiffstats
path: root/scene/animation/animation_cache.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-01-12 00:51:08 -0300
committerJuan Linietsky <reduzio@gmail.com>2017-01-12 00:51:08 -0300
commit83cb84753fb17d0c3e4dbe15388279ee93f97e3e (patch)
tree202b22d5061cc3b79d2ffca8280d50e1ad107a72 /scene/animation/animation_cache.cpp
parentc84d618b4ea944e5c386d21f45265f9cb6fa783e (diff)
downloadredot-engine-83cb84753fb17d0c3e4dbe15388279ee93f97e3e.tar.gz
Renamed most signals so they refer to:
-An action being requested to the user in present tense: (ie, draw, gui_input, etc) -A notification that an action happened, in past tense (ie, area_entered, modal_closed, etc).
Diffstat (limited to 'scene/animation/animation_cache.cpp')
-rw-r--r--scene/animation/animation_cache.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/animation/animation_cache.cpp b/scene/animation/animation_cache.cpp
index 4ab6e2e575..25ca74de9f 100644
--- a/scene/animation/animation_cache.cpp
+++ b/scene/animation/animation_cache.cpp
@@ -59,7 +59,7 @@ void AnimationCache::_clear_cache() {
while(connected_nodes.size()) {
- connected_nodes.front()->get()->disconnect("exit_tree",this,"_node_exit_tree");
+ connected_nodes.front()->get()->disconnect("tree_exited",this,"_node_exit_tree");
connected_nodes.erase(connected_nodes.front());
}
path_cache.clear();;
@@ -206,7 +206,7 @@ void AnimationCache::_update_cache() {
if (!connected_nodes.has(path.node)) {
connected_nodes.insert(path.node);
- path.node->connect("exit_tree",this,"_node_exit_tree",Node::make_binds(path.node),CONNECT_ONESHOT);
+ path.node->connect("tree_exited",this,"_node_exit_tree",Node::make_binds(path.node),CONNECT_ONESHOT);
}