Skip to content

Commit

Permalink
Merge pull request #86841 from groud/fix_global_transform_in_enter_tree
Browse files Browse the repository at this point in the history
Fixes global transform being wrong on entering tree
  • Loading branch information
YuriSizov committed Jan 17, 2024
2 parents c027aec + 0a726d6 commit 0724506
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 @@ -314,6 +314,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 0724506

Please sign in to comment.