Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use entity definition tile size instead of entity instance tile size as basis when calculating ldtk entity scale #271

Merged
merged 2 commits into from
Dec 5, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
test: update test to demonstrate new functionality
  • Loading branch information
Trouv committed Dec 1, 2023
commit be7a49d52409c72fb72481a56689803ff0c42a07
9 changes: 8 additions & 1 deletion src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,13 @@ mod tests {
uid: 0,
width: 32,
height: 32,
tile_rect: Some(TilesetRectangle {
x: 0,
y: 0,
w: 16,
h: 32,
..Default::default()
}),
..Default::default()
}];
let entity_definition_map = create_entity_definition_map(&entity_definitions);
Expand All @@ -500,7 +507,7 @@ mod tests {
tile: Some(TilesetRectangle {
x: 0,
y: 0,
w: 16,
w: 32,
h: 32,
..Default::default()
}),
Expand Down