mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 19:11:33 +00:00
Fix Y-sorted root item having modulation applied twice
This commit is contained in:
parent
6dc78c8aa1
commit
24b502b13a
1 changed files with 1 additions and 1 deletions
|
|
@ -434,7 +434,7 @@ void RendererCanvasCull::_cull_canvas_item(Item *p_canvas_item, const Transform2
|
|||
child_items = (Item **)alloca(child_item_count * sizeof(Item *));
|
||||
|
||||
ci->ysort_xform = Transform2D();
|
||||
ci->ysort_modulate = Color(1, 1, 1, 1);
|
||||
ci->ysort_modulate = Color(1, 1, 1, 1) / ci->modulate;
|
||||
ci->ysort_index = 0;
|
||||
ci->ysort_parent_abs_z_index = parent_z;
|
||||
child_items[0] = ci;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue