From a4c1fa12a54df2fe332db2ab08a03c844e4dcc93 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Sat, 19 Apr 2014 16:46:52 -0300 Subject: heck --- tools/editor/scene_tree_editor.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'tools/editor/scene_tree_editor.cpp') diff --git a/tools/editor/scene_tree_editor.cpp b/tools/editor/scene_tree_editor.cpp index 162475cb9..ca1a6bddd 100644 --- a/tools/editor/scene_tree_editor.cpp +++ b/tools/editor/scene_tree_editor.cpp @@ -398,6 +398,7 @@ void SceneTreeEditor::_notification(int p_what) { get_scene()->disconnect("node_removed",this,"_node_removed"); _update_tree(); } + } @@ -699,10 +700,12 @@ void SceneTreeDialog::_notification(int p_what) { get_stylebox("panel","PopupMenu")->draw(ci,Rect2(Point2(),get_size())); } - if (p_what==NOTIFICATION_POST_POPUP) { - + if (p_what==NOTIFICATION_VISIBILITY_CHANGED && is_visible()) { + tree->update_tree(); } + + } void SceneTreeDialog::_cancel() { -- cgit v1.2.3-70-g09d2