Avoid duplicate visility changed notification, fixes #18160

This commit is contained in:
Juan Linietsky 2018-11-16 19:46:26 -03:00
parent 6ed1be9637
commit 0afdc5c559

View file

@ -376,6 +376,9 @@ bool CanvasItem::is_visible_in_tree() const {
void CanvasItem::_propagate_visibility_changed(bool p_visible) {
if (p_visible && first_draw) { //avoid propagating it twice
first_draw = false;
}
notification(NOTIFICATION_VISIBILITY_CHANGED);
if (p_visible)