Skip to content

Fixed value of visible and locked attributes on object layers#5

Open
bjorn wants to merge 1 commit into
Platonymous:masterfrom
bjorn:patch-1
Open

Fixed value of visible and locked attributes on object layers#5
bjorn wants to merge 1 commit into
Platonymous:masterfrom
bjorn:patch-1

Conversation

@bjorn

@bjorn bjorn commented Nov 12, 2024

Copy link
Copy Markdown

The TMX format uses 1/0 instead of true/false.

Tile layers and image layers were already using 1/0.

The TMX format uses 1/0 instead of true/false.

Tile layers and image layers were already using 1/0.
@bjorn

bjorn commented Nov 12, 2024

Copy link
Copy Markdown
Author

I made this change by editing the file on GitHub so it hasn't been tested in any way. Also, I guess this change might cause compatibility issues with existing exported maps?

Currently behavior for "true"/"false" is that Tiled will silently fail to parse the integer and use the default state (visible, unlocked) for all object groups. This issue was found when somebody tried to load an exported map using rs-tiled, since it is more strict (see mapeditor/rs-tiled#317).

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