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

This reverts commit 826108efec.

This caused a regression (#18614), and potentially other unintended regressions.
This commit is contained in:
Hein-Pieter van Braam 2018-06-05 12:14:57 +02:00
parent f640639867
commit e09170dffa
1 changed files with 1 additions and 2 deletions

View File

@ -263,7 +263,6 @@ bool CanvasItem::is_visible_in_tree() const {
void CanvasItem::_propagate_visibility_changed(bool p_visible) { void CanvasItem::_propagate_visibility_changed(bool p_visible) {
if (!first_draw)
notification(NOTIFICATION_VISIBILITY_CHANGED); notification(NOTIFICATION_VISIBILITY_CHANGED);
if (p_visible) if (p_visible)