Merge pull request #90749 from kleonc/y-sort-branch-root-transform-fix

Fix rendering transform of Y-sorted branch-root
This commit is contained in:
Rémi Verschelde 2024-04-17 10:58:58 +02:00
commit ce13f0c033
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 1 deletions

View File

@ -332,7 +332,7 @@ void RendererCanvasCull::_cull_canvas_item(Item *p_canvas_item, const Transform2
child_item_count = ci->ysort_children_count + 1;
child_items = (Item **)alloca(child_item_count * sizeof(Item *));
ci->ysort_xform = final_xform.affine_inverse();
ci->ysort_xform = ci->xform_curr.affine_inverse();
ci->ysort_pos = Vector2();
ci->ysort_modulate = Color(1, 1, 1, 1);
ci->ysort_index = 0;