mirror of
https://github.com/godotengine/godot.git
synced 2025-01-12 20:22:49 +08:00
Merge pull request #78134 from kleonc/y-sort-initialize-modulate
Fix uninitialized Y-sort modulate for CanvasItems
This commit is contained in:
commit
66423d440e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user