Skip to content

Commit

Permalink
Merge pull request #95669 from kleonc/y_sort_fix_root_double_modulate
Browse files Browse the repository at this point in the history
Fix Y-sorted root item having modulation applied twice
  • Loading branch information
Repiteo committed Jan 29, 2025
2 parents dba3023 + 24b502b commit ee4acfb
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 @@ -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;
Expand Down

0 comments on commit ee4acfb

Please sign in to comment.