summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreska <eska@eska.me>2015-09-26 02:23:19 +0200
committereska <eska@eska.me>2015-09-26 02:23:19 +0200
commitb9bb2ab9c08c5acfcbbb6a2a744a0afd1da48f83 (patch)
tree18fbd27ec088a5935440825451c11d5114a718c4
parent52eebdc00185e18ec6fca4d9c96966e0ab0fb495 (diff)
Fix propagation of NOTIFICATION_VISIBILITY_CHANGED
-rw-r--r--scene/2d/canvas_item.cpp2
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);
}