aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/scene_tree_editor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/editor/scene_tree_editor.cpp')
-rw-r--r--tools/editor/scene_tree_editor.cpp7
1 files changed, 5 insertions, 2 deletions
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() {