Skip to content

Commit

Permalink
Merge 6523c63 into release
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Dec 3, 2022
2 parents 51e22b3 + 6523c63 commit 7b7d909
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
18 changes: 11 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions src-tauri/src/export/texture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)| {
Expand All @@ -73,7 +74,7 @@ pub(super) fn pack_sheet(
})
.collect::<HashMap<_, _>>();

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);
Expand Down

0 comments on commit 7b7d909

Please sign in to comment.