Skip to content

Commit

Permalink
feat: make TrackEntry's track_time mutable and bump minor version
Browse files Browse the repository at this point in the history
  • Loading branch information
dt665m committed Mar 18, 2024
1 parent ba508c8 commit 3e0bb28
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rusty_spine"
version = "0.7.1"
version = "0.8.0"
edition = "2021"
description = "Spine runtime for Rust (and wasm!) transpiled from the official C Runtime."
homepage = "https://github.com/jabuwu/rusty_spine"
Expand Down
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.8.0
- use `c_accessor_mut!` for TrackEntry's `track_time`. It is supposed to be mutable according
to the documentation

# 0.7.1
- Fix dark color applying incorrectly with premultiplied alpha (using draw functions)

Expand Down
3 changes: 2 additions & 1 deletion src/animation_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -751,11 +751,12 @@ impl TrackEntry {
delay,
f32
);
c_accessor!(
c_accessor_mut!(
/// Current time in seconds this track entry has been the current track entry. The track
/// time determines [`animation_time`](`Self::animation_time`). The track time can be set
/// to start the animation at a time other than 0, without affecting looping.
track_time,
set_track_time,
trackTime,
f32
);
Expand Down

0 comments on commit 3e0bb28

Please sign in to comment.