diff options
author | eska <eska@eska.me> | 2015-09-26 02:23:19 +0200 |
---|---|---|
committer | eska <eska@eska.me> | 2015-09-26 02:23:19 +0200 |
commit | b9bb2ab9c08c5acfcbbb6a2a744a0afd1da48f83 (patch) | |
tree | 18fbd27ec088a5935440825451c11d5114a718c4 /scene/2d | |
parent | 52eebdc00185e18ec6fca4d9c96966e0ab0fb495 (diff) |
Fix propagation of NOTIFICATION_VISIBILITY_CHANGED
Diffstat (limited to 'scene/2d')
-rw-r--r-- | scene/2d/canvas_item.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/2d/canvas_item.cpp b/scene/2d/canvas_item.cpp index 49229ba500..357aaa225b 100644 --- a/scene/2d/canvas_item.cpp +++ b/scene/2d/canvas_item.cpp @@ -265,7 +265,7 @@ void CanvasItem::_propagate_visibility_changed(bool p_visible) { CanvasItem *c=get_child(i)->cast_to<CanvasItem>(); - if (c && c->hidden!=p_visible) //should the toplevels stop propagation? i think so but.. + if (c && !c->hidden) //should the toplevels stop propagation? i think so but.. c->_propagate_visibility_changed(p_visible); } |