godotengine / godotengine/godot

Self modulate doesnt works on canvas group with enabled y sort

Open
#97,682 2 comments 3 reactions 0 assignees View on GitHub
bug topic:2d topic:rendering
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

reprodusible in godot 4.3 stable

### System information

Windows 10, godot v4.3.stable.official [77dcf97d8]

### Issue description

I have a canvas group that has a child sprite. The canvas has a modified self modulate parameter, which causes the sprite’s color to change. However, when I turn on the y sort on canvas, the sprite no longer changes color.

### Steps to reproduce

1. Create a canvas_group node
2. Add Sprite2D node to it
3. Change self_modulate property on canvas_group (you can see, that sprite2D changed his color)
4. Set y_sort property on canvas_group to True (As a result Sprite2D stop changing his color)

### Minimal reproduction project (MRP)

[YSortProblem.zip](https://github.com/user-attachments/files/17202774/YSortProblem.zip)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.