Skip to content

Commit

Permalink
Fixes global transform being wrong on entering tree
Browse files Browse the repository at this point in the history
  • Loading branch information
groud committed Jan 16, 2024
1 parent 89cc635 commit 0a726d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scene/main/canvas_item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 0a726d6

Please sign in to comment.