diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2018-05-31 12:03:40 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2018-05-31 12:03:40 +0200 |
commit | 4d277b96ad581358f63870ae051dc73b69c82cd7 (patch) | |
tree | 74d2e5936743ed148bb626d06e14688c0664f145 | |
parent | 43b7ebf0a0478d7b04620b03920fd82041afb588 (diff) |
Revert "Prevent visibility notification been called twice in object creation"
This reverts commit d42b17607ef14aeb72036f8747eb4d5c64979872.
-rw-r--r-- | scene/2d/canvas_item.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scene/2d/canvas_item.cpp b/scene/2d/canvas_item.cpp index 27bdeda4a8..f1c09594da 100644 --- a/scene/2d/canvas_item.cpp +++ b/scene/2d/canvas_item.cpp @@ -272,8 +272,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 |