Avoid duplicate visility changed notification, fixes #18160
This commit is contained in:
parent
6ed1be9637
commit
0afdc5c559
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue