[ts][phaser] Fix SkinsAndAnimationBoundsProvider.

This commit is contained in:
Davide Tantillo 2025-01-27 15:10:25 +01:00
parent 3685fa7e35
commit 8f84f8daa5

View File

@ -149,8 +149,8 @@ export class SkinsAndAnimationBoundsProvider
const bounds = skeleton.getBoundsRect();
minX = Math.min(minX, bounds.x);
minY = Math.min(minY, bounds.y);
maxX = Math.max(maxX, minX + bounds.width);
maxY = Math.max(maxY, minY + bounds.height);
maxX = Math.max(maxX, bounds.x + bounds.width);
maxY = Math.max(maxY, bounds.y + bounds.height);
}
const bounds = {
x: minX,