Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Bevy Sprite Animations
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Microhacks
Bevy Sprite Animations
Commits
0717a9dd
Verified
Commit
0717a9dd
authored
2 years ago
by
Louis
Browse files
Options
Downloads
Patches
Plain Diff
Assert first frame of next anim at end of OnceAndThen animations
parent
8d4a82c9
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.md
+10
-0
10 additions, 0 deletions
CHANGELOG.md
Cargo.toml
+1
-1
1 addition, 1 deletion
Cargo.toml
src/query.rs
+7
-1
7 additions, 1 deletion
src/query.rs
with
18 additions
and
2 deletions
CHANGELOG.md
0 → 100644
+
10
−
0
View file @
0717a9dd
# Changelog
All notable changes to this project will be documented in this file.
The format is based on
[
Keep a Changelog
](
https://keepachangelog.com/en/1.0.0/
)
,
and this project adheres to
[
Semantic Versioning
](
https://semver.org/spec/v2.0.0.html
)
.
## [0.1.1]
### Fixed
-
"play once and then" animations could overflow frame array bounds
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Cargo.toml
+
1
−
1
View file @
0717a9dd
[package]
[package]
name
=
"micro_banimate"
name
=
"micro_banimate"
version
=
"0.1.
0
"
version
=
"0.1.
1
"
edition
=
"2021"
edition
=
"2021"
license
=
"Apache-2.0"
license
=
"Apache-2.0"
description
=
"Easily manage complex Bevy 2D sprite animations"
description
=
"Easily manage complex Bevy 2D sprite animations"
...
...
This diff is collapsed.
Click to expand it.
src/query.rs
+
7
−
1
View file @
0717a9dd
...
@@ -265,7 +265,7 @@ impl<'w, 's> AnimationQuery<'w, 's> {
...
@@ -265,7 +265,7 @@ impl<'w, 's> AnimationQuery<'w, 's> {
None
=>
continue
,
None
=>
continue
,
};
};
let
current
=
match
sheet
.get
(
&
status
.active_name
)
{
let
mut
current
=
match
sheet
.get
(
&
status
.active_name
)
{
Some
(
set
)
=>
set
,
Some
(
set
)
=>
set
,
None
=>
continue
,
None
=>
continue
,
};
};
...
@@ -288,6 +288,12 @@ impl<'w, 's> AnimationQuery<'w, 's> {
...
@@ -288,6 +288,12 @@ impl<'w, 's> AnimationQuery<'w, 's> {
*
mode
=
AnimationMode
::
Loop
;
*
mode
=
AnimationMode
::
Loop
;
status
.active_name
=
next
.clone
();
status
.active_name
=
next
.clone
();
status
.frame_time
=
0.0
;
status
.frame_time
=
0.0
;
status
.active_step
=
0
;
current
=
match
sheet
.get
(
&
status
.active_name
)
{
Some
(
set
)
=>
set
,
None
=>
continue
,
};
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment