diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-09-26 00:59:19 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-09-26 00:59:19 -0300 |
commit | 10e787109183f34924693998ccb10d8a4795880b (patch) | |
tree | 1cec47e99c24c46a916efd251155894d1c2c65e1 | |
parent | 6f0df4e80c42c111d60f8662a267ce4a704ecebc (diff) | |
parent | b9bb2ab9c08c5acfcbbb6a2a744a0afd1da48f83 (diff) |
Merge pull request #2533 from eska014/fix-visibility-notification-propagation
Fix propagation of `NOTIFICATION_VISIBILITY_CHANGED`
-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); } |