Skip to content

Preserve tile object transformation flags on TiledObject - #205

Open
Itzudii wants to merge 1 commit into
bitcraft:masterfrom
Itzudii:master
Open

Preserve tile object transformation flags on TiledObject#205
Itzudii wants to merge 1 commit into
bitcraft:masterfrom
Itzudii:master

Conversation

@Itzudii

@Itzudii Itzudii commented Aug 2, 2026

Copy link
Copy Markdown

Tiled stores horizontal, vertical, and diagonal flip flags in the object's raw GID. During parsing, PyTMX converts the raw GID to an internal GID, causing the original transformation information to be lost.

This change preserves:

raw_gid
flip_x
flip_y
flip_d
flags (optional)

This is fully backward compatible because no existing attributes are changed; only new attributes are added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant