Skip to content

Commit

Permalink
[ts][pixi-v7] Fix incorrect pixiObject scale in updatePixiObject
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin Tolis authored and davidetan committed Nov 22, 2024
1 parent 5e80111 commit c505061
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spine-ts/spine-pixi-v7/src/Spine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ export class Spine extends Container {
}
private updatePixiObject (pixiObject: Container, slot: Slot, zIndex: number) {
pixiObject.position.set(slot.bone.worldX, slot.bone.worldY);
pixiObject.scale.set(slot.bone.getWorldScaleX(), slot.bone.getWorldScaleX());
pixiObject.scale.set(slot.bone.getWorldScaleX(), slot.bone.getWorldScaleY());
pixiObject.rotation = slot.bone.getWorldRotationX() * MathUtils.degRad;
pixiObject.zIndex = zIndex + 1;
pixiObject.alpha = this.skeleton.color.a * slot.color.a;
Expand Down

0 comments on commit c505061

Please sign in to comment.