From 9c817092d6aa7d2dcb8bf4e18216b6060487f6fd Mon Sep 17 00:00:00 2001 From: Antoine Gersant Date: Sat, 3 Dec 2022 11:56:46 -0800 Subject: [PATCH 1/2] Fixed a bug where exported sheets were larger than needed --- src-tauri/src/export/texture.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src-tauri/src/export/texture.rs b/src-tauri/src/export/texture.rs index c8de837..3bc43ff 100644 --- a/src-tauri/src/export/texture.rs +++ b/src-tauri/src/export/texture.rs @@ -59,7 +59,8 @@ pub(super) fn pack_sheet( h: bitmap.height() as usize, rot: crunch::Rotation::None, }); - let (size, _, layout) = crunch::pack_into_po2(8_192, items).map_err(|_| PackError::Packing)?; + let (width, height, layout) = + crunch::pack_into_po2(8_192, items).map_err(|_| PackError::Packing)?; let layout = layout .into_iter() .map(|(r, p)| { @@ -73,7 +74,7 @@ pub(super) fn pack_sheet( }) .collect::>(); - let mut texture = DynamicImage::new_rgba8(size as u32, size as u32); + let mut texture = DynamicImage::new_rgba8(width as u32, height as u32); layout.iter().for_each(|(path, frame)| { let bitmap = bitmaps.get(path.as_path()).unwrap(); let (x, y) = (frame.position_in_sheet.0, frame.position_in_sheet.1); From 6523c638996c35b04418e4d5d227c488278cb517 Mon Sep 17 00:00:00 2001 From: Antoine Gersant Date: Sat, 3 Dec 2022 11:58:34 -0800 Subject: [PATCH 2/2] 0.6.1 changelog --- CHANGELOG.md | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d75965f..3dd2d36 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,13 @@ # Changelog -## Tiger 0.6 +## Tiger 0.6.1 + +- [x] Fixed a bug where exported textures were incorrectly sized + +## Tiger 0.6.0 - [x] Template syntax now uses Handlebars instead of Liquid -- [x] Exported textures are now power-of-2 squares +- [x] Exported texture dimensions are now power-of-2 - [x] Hitbox names appear in workbench when there is enough space - [x] Upgraded from Heroicons 1.0 to 2.0 - [x] Keyframe durations can snap to nearby keyframes @@ -30,7 +34,7 @@ - [x] Fixed a bug where animations keyframes or sheet frames could incorrectly appear as selected - [x] Fixed minor bugs related to using the Undo command immediately after opening a spritesheet -## Tiger 0.5 +## Tiger 0.5.0 - [x] Document template format - [x] Switch documentation Github Pages to `release` branch @@ -50,7 +54,7 @@ - [x] Fixed a bug where changes caused by mouse clicks would not appear immediately - [x] Major performance improvements to panning/dragging actions -## Tiger 0.4 +## Tiger 0.4.0 - [x] UI rewrite (prettier) - [x] In-place rename UX @@ -76,7 +80,7 @@ - [x] Replace powershell release script with Github action - [x] Unit test sheet module -## Tiger 0.3 +## Tiger 0.3.0 - [x] Cap undo history at 100 entries - [x] Offer to save when closing individual documents @@ -103,7 +107,7 @@ - [x] Auto reload images on frame edit - ~~[ ] Visible handles for adjusting frame durations (instead of invisible buttons)~~ -## Tiger 0.2 +## Tiger 0.2.0 - [x] Unsaved file marker - [x] Offer to save on exit if needed @@ -144,7 +148,7 @@ - [x] Pass in mouse drag deltas to drag/resize logic instead of mouse positions. See GetMouseDragDelta in imgui - [x] Handle scenario when using "Save as" onto a file that is already open -## Tiger 0.1 +## Tiger 0.1.0 - [x] Don't store absolute paths in tiger files - [x] Show frame names in timeline