Browse Source

Merge pull request #2533 from eska014/fix-visibility-notification-propagation

Fix propagation of `NOTIFICATION_VISIBILITY_CHANGED`
Juan Linietsky 10 years ago
parent
commit
10e7871091
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scene/2d/canvas_item.cpp

+ 1 - 1
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);
 	}