Fix Y-sorted root item having modulation applied twice
This commit is contained in:
parent
5b6d9a7dd8
commit
e6a8e9baf4
|
@ -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_xform = ci->xform_curr.affine_inverse();
|
||||||
ci->ysort_pos = Vector2();
|
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_index = 0;
|
||||||
ci->ysort_parent_abs_z_index = parent_z;
|
ci->ysort_parent_abs_z_index = parent_z;
|
||||||
child_items[0] = ci;
|
child_items[0] = ci;
|
||||||
|
|
Loading…
Reference in New Issue