Revert "Prevent visibility notification from being called twice in object creation"

This commit is contained in:
Rémi Verschelde 2018-06-05 12:05:02 +02:00 committed by GitHub
parent 6e32a2886f
commit 2935cd8a58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

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