diff options
| author | Juan Linietsky | 2014-04-19 16:46:52 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2014-04-19 16:46:52 -0300 |
| commit | a4c1fa12a54df2fe332db2ab08a03c844e4dcc93 (patch) | |
| tree | 0e3fa1b801c174b1e56d81d2744be05361fbcd46 /tools/editor/scene_tree_editor.cpp | |
| parent | 0360b454a432dc851cc1c5b0c365049ebafcec46 (diff) | |
| download | godot-a4c1fa12a54df2fe332db2ab08a03c844e4dcc93.tar.gz godot-a4c1fa12a54df2fe332db2ab08a03c844e4dcc93.tar.zst godot-a4c1fa12a54df2fe332db2ab08a03c844e4dcc93.zip | |
heck
Diffstat (limited to '')
| -rw-r--r-- | tools/editor/scene_tree_editor.cpp | 7 |
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() { |
