mirror of
https://github.com/tiennm99/godot.git
synced 2026-08-09 14:21:58 +00:00
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
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user