From 0dbedd18fc62f700e92a4cf581e505d849bc47ad Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Wed, 5 Nov 2014 21:20:42 -0300 Subject: SceneMainLoop -> SceneTree -=-=-=-=-=-=-=-=-=-=-=-=-=- *YOUR SOURCE MIGHT NOT WORK* For mor information on fix: https://github.com/okamstudio/godot/wiki/devel_scene_tree Other stuff: -Shower of bullets demo -Fixes all around --- scene/gui/container.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scene/gui/container.cpp') diff --git a/scene/gui/container.cpp b/scene/gui/container.cpp index 6543a0388..bb61723ac 100644 --- a/scene/gui/container.cpp +++ b/scene/gui/container.cpp @@ -67,7 +67,7 @@ void Container::remove_child_notify(Node *p_child) { void Container::_sort_children() { - if (!is_inside_scene()) + if (!is_inside_tree()) return; notification(NOTIFICATION_SORT_CHILDREN); @@ -101,7 +101,7 @@ void Container::fit_child_in_rect(Control *p_child,const Rect2& p_rect) { void Container::queue_sort() { - if (!is_inside_scene()) + if (!is_inside_tree()) return; if (pending_sort) @@ -115,7 +115,7 @@ void Container::_notification(int p_what) { switch(p_what) { - case NOTIFICATION_ENTER_SCENE: { + case NOTIFICATION_ENTER_TREE: { pending_sort=false; queue_sort(); } break; -- cgit v1.2.3-70-g09d2