aboutsummaryrefslogtreecommitdiff
path: root/scene/2d/canvas_item.cpp
diff options
context:
space:
mode:
authoreska2015-09-26 02:23:19 +0200
committereska2015-09-26 02:23:19 +0200
commitb9bb2ab9c08c5acfcbbb6a2a744a0afd1da48f83 (patch)
tree18fbd27ec088a5935440825451c11d5114a718c4 /scene/2d/canvas_item.cpp
parent52eebdc00185e18ec6fca4d9c96966e0ab0fb495 (diff)
downloadgodot-b9bb2ab9c08c5acfcbbb6a2a744a0afd1da48f83.tar.gz
godot-b9bb2ab9c08c5acfcbbb6a2a744a0afd1da48f83.tar.zst
godot-b9bb2ab9c08c5acfcbbb6a2a744a0afd1da48f83.zip
Fix propagation of NOTIFICATION_VISIBILITY_CHANGED
Diffstat (limited to '')
-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 49229ba50..357aaa225 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);
}