Skip to content

Commit

Permalink
Fix issue where sprites could end up with empty state id values
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismaltby committed Nov 27, 2024
1 parent 557a74f commit d56fd9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fix issue preventing checkbox type working in engine fields [@pau-tomas](https://github.com/pau-tomas)
- Fix UI palette text control code. Palette indices now go from 1 to 8, because zero byte is a string terminator [@untoxa](https://github.com/untoxa)
- Fix issue where migrating old projects could cause gbvm symbols to become empty, preventing build from completing (opening a broken project will now automatically fix this issue)
- Fix issue where sprites could end up with empty state id values

## [4.1.3] - 2024-09-16

Expand Down
1 change: 1 addition & 0 deletions src/lib/project/loadProjectData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ const loadProject = async (projectPath: string): Promise<LoadProjectResult> => {
states: (resource?.states || asset.states).map((oldState) => {
return {
...oldState,
id: oldState.id || uuid(),
animations: Array.from(Array(8)).map((_, animationIndex) => ({
id:
(oldState.animations &&
Expand Down

0 comments on commit d56fd9b

Please sign in to comment.