소스 검색

Fixes global transform being wrong on entering tree

(cherry picked from commit 0a726d692a13214f7e3ee63dbc38a727ba0e8eb1)
Gilles Roudière 1 년 전
부모
커밋
032d96042d
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      scene/main/canvas_item.cpp

+ 1 - 0
scene/main/canvas_item.cpp

@@ -315,6 +315,7 @@ void CanvasItem::_notification(int p_what) {
 				}
 			}
 
+			_set_global_invalid(true);
 			_enter_canvas();
 
 			RenderingServer::get_singleton()->canvas_item_set_visible(canvas_item, is_visible_in_tree()); // The visibility of the parent may change.