mapeditor / mapeditor/tiled

Alpha not saved for `objectgroup` and `imagelayer`

Open
#1,353 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.