Browse Source

Revert "Prevent visibility notification from being called twice in object creation"

Rémi Verschelde 7 năm trước cách đây
mục cha
commit
2935cd8a58
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      scene/2d/canvas_item.cpp

+ 1 - 2
scene/2d/canvas_item.cpp

@@ -272,8 +272,7 @@ bool CanvasItem::is_visible_in_tree() const {
 
 void CanvasItem::_propagate_visibility_changed(bool p_visible) {
 
-	if (!first_draw)
-		notification(NOTIFICATION_VISIBILITY_CHANGED);
+	notification(NOTIFICATION_VISIBILITY_CHANGED);
 
 	if (p_visible)
 		update(); //todo optimize