aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/scene_tree_editor.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2014-04-19 16:46:52 -0300
committerJuan Linietsky2014-04-19 16:46:52 -0300
commita4c1fa12a54df2fe332db2ab08a03c844e4dcc93 (patch)
tree0e3fa1b801c174b1e56d81d2744be05361fbcd46 /tools/editor/scene_tree_editor.cpp
parent0360b454a432dc851cc1c5b0c365049ebafcec46 (diff)
downloadgodot-a4c1fa12a54df2fe332db2ab08a03c844e4dcc93.tar.gz
godot-a4c1fa12a54df2fe332db2ab08a03c844e4dcc93.tar.zst
godot-a4c1fa12a54df2fe332db2ab08a03c844e4dcc93.zip
heck
Diffstat (limited to '')
-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() {