Fix Y-sorted root item having modulation applied twice

This commit is contained in:
kleonc 2024-08-17 01:19:57 +02:00
parent 5b6d9a7dd8
commit e6a8e9baf4
1 changed files with 1 additions and 1 deletions

View File

@ -346,7 +346,7 @@ void RendererCanvasCull::_cull_canvas_item(Item *p_canvas_item, const Transform2
ci->ysort_xform = ci->xform_curr.affine_inverse();
ci->ysort_pos = Vector2();
ci->ysort_modulate = Color(1, 1, 1, 1);
ci->ysort_modulate = Color(1, 1, 1, 1) / modulate;
ci->ysort_index = 0;
ci->ysort_parent_abs_z_index = parent_z;
child_items[0] = ci;