diff --git a/Cargo.toml b/Cargo.toml index 9a3bf11..b0cc609 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/changelog.md b/changelog.md index e37f853..a5b09d2 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,6 @@ +# 0.8.0 (UNRELEASED) +- Add `TrackEntry::set_track_time` + # 0.7.1 - Fix dark color applying incorrectly with premultiplied alpha (using draw functions) diff --git a/src/animation_state.rs b/src/animation_state.rs index 996311b..65d26bf 100644 --- a/src/animation_state.rs +++ b/src/animation_state.rs @@ -751,11 +751,13 @@ 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 the track time, see [`track_time`](`Self::track_time`). + set_track_time, trackTime, f32 );