Skip to content

Commit ee4acfb

Browse files
committed
Merge pull request godotengine#95669 from kleonc/y_sort_fix_root_double_modulate
Fix Y-sorted root item having modulation applied twice
2 parents dba3023 + 24b502b commit ee4acfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

servers/rendering/renderer_canvas_cull.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ void RendererCanvasCull::_cull_canvas_item(Item *p_canvas_item, const Transform2
434434
child_items = (Item **)alloca(child_item_count * sizeof(Item *));
435435

436436
ci->ysort_xform = Transform2D();
437-
ci->ysort_modulate = Color(1, 1, 1, 1);
437+
ci->ysort_modulate = Color(1, 1, 1, 1) / ci->modulate;
438438
ci->ysort_index = 0;
439439
ci->ysort_parent_abs_z_index = parent_z;
440440
child_items[0] = ci;

0 commit comments

Comments
 (0)