Skip to content

Commit

Permalink
Fix transform of Y-sorted branch-root
Browse files Browse the repository at this point in the history
  • Loading branch information
kleonc committed Apr 16, 2024
1 parent 4728ff3 commit 983cdb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion servers/rendering/renderer_canvas_cull.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 983cdb2

Please sign in to comment.