Skip to content

Commit

Permalink
Fix Y-sorted root item having modulation applied twice
Browse files Browse the repository at this point in the history
  • Loading branch information
kleonc committed Aug 16, 2024
1 parent 5b6d9a7 commit e6a8e9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion servers/rendering/renderer_canvas_cull.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e6a8e9b

Please sign in to comment.