Skip to content
This repository was archived by the owner on Sep 8, 2024. It is now read-only.

Conversation

joshvera
Copy link

Fixes an issue where calling TileInstance.to_world wasn't taking px_total_offset_x and px_total_offset_y into account.

This can be reproduced by rendering the top down example project in LDtk.

image

If you render the Wall_tops layer without this you get something like the following:

image

This PR get us:

image

@joshvera joshvera changed the title Adjust LayerInstance.px_to_world by px_offset_x and px_offset_y comfy-ldtk: Adjust LayerInstance.px_to_world by px_offset_x and px_offset_y Dec 27, 2023
@joshvera joshvera changed the title comfy-ldtk: Adjust LayerInstance.px_to_world by px_offset_x and px_offset_y comfy-ldtk: Offset by Layer's px_offset in LayerInstance.px_to_world Dec 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant