Revert "Prevent visibility notification been called twice in object creation"

This reverts commit d42b17607e.
This commit is contained in:
Rémi Verschelde 2018-05-31 12:03:40 +02:00
parent 43b7ebf0a0
commit 4d277b96ad

View file

@ -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