Alpha not saved for `objectgroup` and `imagelayer`
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 12.9k
- Forks
- 2k
- Avg merge
- 4h 27m
- Merged PRs (30d)
- 8
Description
OS: Linux
Tiled version: 0.17.0
How to reproduce: create a new map with an object layer and/or an image layer.
Set some color (in the properties), change alpha to some other value than 255 (for image layer, also select an image).
Save map. Close map.
Reopen map.
Alpha will be at 255 again.
Edit: I just saw a commit fixing this for object layers on the master branch, I believe: https://github.com/bjorn/tiled/commit/8ca3e868f5b0d6b8cce370979fa05ba749dfb5af maybe it's still broken for image layers?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the save, close, and reopen sequence described in the issue with an image layer and a non-255 alpha value. Compare the object-layer fix in commit 8ca3e868f5b0d6b8cce370979fa05ba749dfb5af with the image-layer save and load path. Done means the image-layer alpha remains unchanged after reopening.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- desktop, game-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100