Parent scale.z affects child sprite z-index
Open
A-Rendering
A-Transform
C-Bug
D-Complex
S-Needs-Design-Doc
- Dominant language
- Rust
- Stars
- 48.2k
- Forks
- 4.8k
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 161
Description
## Bevy version
0.6.1
## Operating system & version
Win 11
## What you did
Spawned a parented sprite and change the parent's scale.z to something other than 1.0
## What you expected to happen
Z-index of a sprite wouldn't be affected at all or the transform of the sprite would affect it as well.
## What actually happened
It's affected by the parent transforms
## Additional information
Repro
https://github.com/SecretPocketCat/bevy_issue_repro/blob/sprite_index_scale/src/main.rs
(the expected order from bottom would be red, green, blue)

Contributor guide
Assessment
This issue has not been assessed yet.