diff options
| author | Hein-Pieter van Braam | 2018-06-05 12:14:57 +0200 |
|---|---|---|
| committer | Hein-Pieter van Braam | 2018-06-05 12:14:57 +0200 |
| commit | e09170dffa1c5cc953ebec22de22434d5172f3f7 (patch) | |
| tree | d56ba39570f2acce597d4ac0d5d8d38ccbd200c2 /scene/2d/canvas_item.cpp | |
| parent | f6406398670f41b55cd8e47bf5d8a1e764fb0c02 (diff) | |
| download | godot-e09170dffa1c5cc953ebec22de22434d5172f3f7.tar.gz godot-e09170dffa1c5cc953ebec22de22434d5172f3f7.tar.zst godot-e09170dffa1c5cc953ebec22de22434d5172f3f7.zip | |
Revert "Prevent visibility notification been called twice in object creation"
This reverts commit 826108efecf106522a3412291725069dc35119f8.
This caused a regression (#18614), and potentially other unintended regressions.
Diffstat (limited to '')
| -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 6bdc5fa66..87bcdae52 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 |
