Skip to content

Commit

Permalink
Update AssetDataHandler.hx
Browse files Browse the repository at this point in the history
  • Loading branch information
KoloInDaCrib authored Oct 15, 2024
1 parent 75fb2ab commit 0ad02e4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ class AssetDataHandler
{
if (data.animations != null && data.animations.length > 0)
{
object.frames = flixel.graphics.frames.FlxAtlasFrames.fromSparrow(finalBitmap, data.xmlData);
var bitToLoad = state.addBitmap(data.bitmap.clone());
object.frames = flixel.graphics.frames.FlxAtlasFrames.fromSparrow(state.bitmaps[bitToLoad], data.xmlData);
}
else if (areTheseBitmapsEqual(data.bitmap, getDefaultGraphic()))
{
Expand Down

0 comments on commit 0ad02e4

Please sign in to comment.