Skip to content

Commit 3b3a3c0

Browse files
Merge pull request #89 from AristurtleDev/develop
Develop
2 parents d3a8804 + 31a9f65 commit 3b3a3c0

File tree

6 files changed

+18
-14
lines changed

6 files changed

+18
-14
lines changed

.github/release-notes.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,7 @@
4545
- `AsepriteCel` properties were made public (thanks @SephDB)
4646
- `AnimatedSprite` now supports setting frame both on initial play and during playback.
4747

48+
## 5.1.1
49+
- Resolved issue where using Linked Cels can cause an out of bounds exception.
50+
4851

.nuget/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
A Cross Platform C# Library That Adds Support For Aseprite Files in MonoGame Projects.
44

55
[![build-and-test](https://github.com/AristurtleDev/monogame-aseprite/actions/workflows/buildandtest.yml/badge.svg)](https://github.com/AristurtleDev/monogame-aseprite/actions/workflows/buildandtest.yml)
6-
[![Nuget 5.1.0](https://img.shields.io/nuget/v/MonoGame.Aseprite?color=blue&style=flat-square)](https://www.nuget.org/packages/MonoGame.Aseprite/5.1.0)
6+
[![Nuget 5.1.1](https://img.shields.io/nuget/v/MonoGame.Aseprite?color=blue&style=flat-square)](https://www.nuget.org/packages/MonoGame.Aseprite/5.1.1)
77
[![License: MIT](https://img.shields.io/badge/📃%20license-MIT-blue?style=flat)](LICENSE)
88
[![Twitter](https://img.shields.io/badge/%20-Share%20On%20Twitter-555?style=flat&logo=twitter)](https://twitter.com/intent/tweet?text=MonoGame.Aseprite%20by%20%40aristurtledev%0A%0AA%20cross-platform%20C%23%20library%20that%20adds%20support%20for%20Aseprite%20files%20in%20MonoGame%20projects.%20https%3A%2F%2Fgithub.com%2FAristurtleDev%2Fmonogame-aseprite%0A%0A%23monogame%20%23aseprite%20%23dotnet%20%23csharp%20%23oss%0A)
99

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
A Cross Platform C# Library That Adds Support For Aseprite Files in MonoGame Projects.
55

66
[![build-and-test](https://github.com/AristurtleDev/monogame-aseprite/actions/workflows/buildandtest.yml/badge.svg)](https://github.com/AristurtleDev/monogame-aseprite/actions/workflows/buildandtest.yml)
7-
[![Nuget 5.1.0](https://img.shields.io/nuget/v/MonoGame.Aseprite?color=blue&style=flat-square)](https://www.nuget.org/packages/MonoGame.Aseprite/5.1.0)
7+
[![Nuget 5.1.1](https://img.shields.io/nuget/v/MonoGame.Aseprite?color=blue&style=flat-square)](https://www.nuget.org/packages/MonoGame.Aseprite/5.1.1)
88
[![License: MIT](https://img.shields.io/badge/📃%20license-MIT-blue?style=flat)](LICENSE)
99
[![Twitter](https://img.shields.io/badge/%20-Share%20On%20Twitter-555?style=flat&logo=twitter)](https://twitter.com/intent/tweet?text=MonoGame.Aseprite%20by%20%40aristurtledev%0A%0AA%20cross-platform%20C%23%20library%20that%20adds%20support%20for%20Aseprite%20files%20in%20MonoGame%20projects.%20https%3A%2F%2Fgithub.com%2FAristurtleDev%2Fmonogame-aseprite%0A%0A%23monogame%20%23aseprite%20%23dotnet%20%23csharp%20%23oss%0A)
1010

source/MonoGame.Aseprite.Content.Pipeline/MonoGame.Aseprite.Content.Pipeline.csproj

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<ImplicitUsings>enable</ImplicitUsings>
55
<Nullable>enable</Nullable>
66
<GenerateDocumentationFile>False</GenerateDocumentationFile>
7-
<Version>5.1.0</Version>
7+
<Version>5.1.1</Version>
88
</PropertyGroup>
99

1010
<PropertyGroup>
@@ -21,9 +21,9 @@
2121
<!-- dotnet pack Nuget Config stuff -->
2222
<PropertyGroup>
2323
<PackageId>MonoGame.Aseprite.Content.Pipeline</PackageId>
24-
<Version>5.1.0</Version>
25-
<AssemblyVersion>5.1.0</AssemblyVersion>
26-
<FileVersion>5.1.0</FileVersion>
24+
<Version>5.1.1</Version>
25+
<AssemblyVersion>5.1.1</AssemblyVersion>
26+
<FileVersion>5.1.1</FileVersion>
2727
<Authors>Christopher Whitley</Authors>
2828
<Company>Aristurtle</Company>
2929
<PackageLicenseExpression>MIT</PackageLicenseExpression>
@@ -38,10 +38,9 @@
3838
MonoGame;Aseprite;import;processes;read;write;sprite;animation;tileset;tilemap;spritesheet;pipeline;mgcb
3939
</PackageTags>
4040
<PackageReleaseNotes>
41-
Version 5.1.0
41+
Version 5.1.1
4242
The following changes were implemented:
43-
- `AsepriteCel` properties were made public (thanks @SephDB)
44-
- `AnimatedSprite` now supports setting frame both on initial play and during playback.
43+
- Resolved issue where using Linked Cels can cause an out of bounds exception.
4544
</PackageReleaseNotes>
4645
<Description>
4746
MonoGame.Aseprite.Content.Pipeline is a cross-platform C# library that adds an extension to the MonoGame

source/MonoGame.Aseprite.Shared/AsepriteTypes/AsepriteFileBuilder.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,10 @@ internal void AddRawImageCel(short x, short y, ushort width, ushort height, usho
101101
internal void AddLinkedCel(ushort frameIndex)
102102
{
103103
AsepriteFrame frame = _frames[frameIndex];
104-
AsepriteCel linkedCel = frame.Cels[_nextFrameCels.Count];
104+
// If the first cel is a linked cel, then we haven't added cels yet
105+
// so the " - 1" will result in -1. So we only do so when the count is
106+
// greater than 0
107+
AsepriteCel linkedCel = frame.Cels[_nextFrameCels.Count > 0 ? _nextFrameCels.Count - 1 : 0];
105108
_nextFrameCels.Add(linkedCel);
106109
}
107110

source/MonoGame.Aseprite/MonoGame.Aseprite.csproj

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<ImplicitUsings>enable</ImplicitUsings>
55
<Nullable>enable</Nullable>
66
<GenerateDocumentationFile>False</GenerateDocumentationFile>
7-
<Version>5.1.0</Version>
7+
<Version>5.1.1</Version>
88
</PropertyGroup>
99

1010
<PropertyGroup>
@@ -29,10 +29,9 @@
2929
</PackageTags>
3030
<PackageReadmeFile>README.md</PackageReadmeFile>
3131
<PackageReleaseNotes>
32-
Version 5.1.0
32+
Version 5.1.1
3333
The following changes were implemented:
34-
- `AsepriteCel` properties were made public (thanks @SephDB)
35-
- `AnimatedSprite` now supports setting frame both on initial play and during playback.
34+
- Resolved issue where using Linked Cels can cause an out of bounds exception.
3635
</PackageReleaseNotes>
3736
<Description>
3837
MonoGame.Aseprite is a cross-platofrm C# library that adds support to MonoGame projects for

0 commit comments

Comments
 (0)