diff options
| author | Juan Linietsky | 2017-01-13 10:45:50 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2017-01-13 10:45:50 -0300 |
| commit | 04c749a1f034c0b2256fdca0ca2675f696b490e8 (patch) | |
| tree | c908a64edf3f61bba725051c8f60c6a108acbb84 /tools/editor/scene_tree_editor.cpp | |
| parent | a2903fc51d1d20eba4dc451bdacbe477d6670163 (diff) | |
| download | godot-04c749a1f034c0b2256fdca0ca2675f696b490e8.tar.gz godot-04c749a1f034c0b2256fdca0ca2675f696b490e8.tar.zst godot-04c749a1f034c0b2256fdca0ca2675f696b490e8.zip | |
New API for visibility in both CanvasItem and Spatial
visible (property) - access set_visible(bool) is_visible()
is_visible_in_tree() - true when visible and parents visible
show() hide() - for convenience
Diffstat (limited to 'tools/editor/scene_tree_editor.cpp')
| -rw-r--r-- | tools/editor/scene_tree_editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/editor/scene_tree_editor.cpp b/tools/editor/scene_tree_editor.cpp index 2b42fab51..a1a8803b0 100644 --- a/tools/editor/scene_tree_editor.cpp +++ b/tools/editor/scene_tree_editor.cpp @@ -1264,7 +1264,7 @@ void SceneTreeDialog::_notification(int p_what) { get_stylebox("panel","PopupMenu")->draw(ci,Rect2(Point2(),get_size())); } - if (p_what==NOTIFICATION_VISIBILITY_CHANGED && is_visible()) { + if (p_what==NOTIFICATION_VISIBILITY_CHANGED && is_visible_in_tree()) { tree->update_tree(); } |
