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:
parent
a2903fc51d
commit
04c749a1f0
72 changed files with 252 additions and 292 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue