From e09170dffa1c5cc953ebec22de22434d5172f3f7 Mon Sep 17 00:00:00 2001 From: Hein-Pieter van Braam Date: Tue, 5 Jun 2018 12:14:57 +0200 Subject: [PATCH] Revert "Prevent visibility notification been called twice in object creation" This reverts commit 826108efecf106522a3412291725069dc35119f8. This caused a regression (#18614), and potentially other unintended regressions. --- scene/2d/canvas_item.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scene/2d/canvas_item.cpp b/scene/2d/canvas_item.cpp index 6bdc5fa66a8..87bcdae5277 100644 --- a/scene/2d/canvas_item.cpp +++ b/scene/2d/canvas_item.cpp @@ -263,8 +263,7 @@ bool CanvasItem::is_visible_in_tree() const { void CanvasItem::_propagate_visibility_changed(bool p_visible) { - if (!first_draw) - notification(NOTIFICATION_VISIBILITY_CHANGED); + notification(NOTIFICATION_VISIBILITY_CHANGED); if (p_visible) update(); //todo optimize