Skip to content

Commit 983cdb2

Browse files
committed
Fix transform of Y-sorted branch-root
1 parent 4728ff3 commit 983cdb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

servers/rendering/renderer_canvas_cull.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ void RendererCanvasCull::_cull_canvas_item(Item *p_canvas_item, const Transform2
332332
child_item_count = ci->ysort_children_count + 1;
333333
child_items = (Item **)alloca(child_item_count * sizeof(Item *));
334334

335-
ci->ysort_xform = final_xform.affine_inverse();
335+
ci->ysort_xform = ci->xform_curr.affine_inverse();
336336
ci->ysort_pos = Vector2();
337337
ci->ysort_modulate = Color(1, 1, 1, 1);
338338
ci->ysort_index = 0;

0 commit comments

Comments
 (0)