diff options
Diffstat (limited to 'scene')
-rw-r--r-- | scene/main/canvas_item.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scene/main/canvas_item.cpp b/scene/main/canvas_item.cpp index b36353158b..72fb838732 100644 --- a/scene/main/canvas_item.cpp +++ b/scene/main/canvas_item.cpp @@ -289,11 +289,12 @@ void CanvasItem::_notification(int p_what) { } } + _enter_canvas(); + RenderingServer::get_singleton()->canvas_item_set_visible(canvas_item, is_visible_in_tree()); // The visibility of the parent may change. if (is_visible_in_tree()) { notification(NOTIFICATION_VISIBILITY_CHANGED); // Considered invisible until entered. } - _enter_canvas(); _update_texture_filter_changed(false); _update_texture_repeat_changed(false); |