Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Commit

Permalink
fix: spines of different scale returning the same cached spine (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zyie authored Aug 22, 2024
1 parent d97402a commit 1016ec0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Spine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ export class Spine extends Container implements View

static from({ skeleton, atlas, scale = 1 }: SpineFromOptions)
{
const cacheKey = `${skeleton}-${atlas}`;
const cacheKey = `${skeleton}-${atlas}-${scale}`;

if (Cache.has(cacheKey))
{
Expand Down

0 comments on commit 1016ec0

Please sign in to comment.