Sfoglia il codice sorgente

Merge pull request #19377 from godotengine/revert-18172-fix_notification

Revert "Prevent visibility notification from being called twice in object creation"
Rémi Verschelde 7 anni fa
parent
commit
36c70bbcd0
1 ha cambiato i file con 1 aggiunte e 2 eliminazioni
  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