Skip to content

Commit a451409

Browse files
authored
AsepriteSliceKey constructor was not assigning FrameIndex. It was being passed by parameter but not being used. This should enable to use slices that have different positions through different frames (#34)
1 parent 77e3a5f commit a451409

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/AsepriteDotNet/Aseprite/Types/AsepriteSliceKey.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ public sealed class AsepriteSliceKey
3434

3535
internal AsepriteSliceKey(AsepriteSliceKeyProperties keyProperties, AsepriteNinePatchProperties? ninePatchProperties, AsepritePivotProperties? pivotProperties)
3636
{
37+
FrameIndex = (int)keyProperties.FrameNumber;
38+
3739
Bounds = new Rectangle((int)keyProperties.X, (int)keyProperties.Y, (int)keyProperties.Width, (int)keyProperties.Height);
3840

3941
// If this is not a nine patch, make the center bounds equal to the key bounds.

0 commit comments

Comments
 (0)