From e6a8e9baf4ac5d076f61c79ff0f479ace287dc59 Mon Sep 17 00:00:00 2001 From: kleonc <9283098+kleonc@users.noreply.github.com> Date: Sat, 17 Aug 2024 01:19:57 +0200 Subject: [PATCH] Fix Y-sorted root item having modulation applied twice --- servers/rendering/renderer_canvas_cull.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/rendering/renderer_canvas_cull.cpp b/servers/rendering/renderer_canvas_cull.cpp index c4286dcc0c6..ec362179572 100644 --- a/servers/rendering/renderer_canvas_cull.cpp +++ b/servers/rendering/renderer_canvas_cull.cpp @@ -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;