Fix Y-sort modulate for top-most Y-sorted CanvasItem

This commit is contained in:
kleonc 2023-06-12 13:07:03 +02:00
parent 54ab17eb21
commit bbb2a889d8

View file

@ -311,6 +311,7 @@ void RendererCanvasCull::_cull_canvas_item(Item *p_canvas_item, const Transform2
int i = 1;
_collect_ysort_children(ci, Transform2D(), p_material_owner, Color(1, 1, 1, 1), child_items, i, p_z);
ci->ysort_xform = ci->xform.affine_inverse();
ci->ysort_modulate = Color(1, 1, 1, 1);
SortArray<Item *, ItemPtrSort> sorter;
sorter.sort(child_items, child_item_count);