mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 09:16:01 +08:00
[ts][pixi-v7] Fix incorrect pixiObject scale in updatePixiObject
This commit is contained in:
parent
5e80111b87
commit
c505061d91
@ -398,7 +398,7 @@ export class Spine extends Container {
|
|||||||
}
|
}
|
||||||
private updatePixiObject (pixiObject: Container, slot: Slot, zIndex: number) {
|
private updatePixiObject (pixiObject: Container, slot: Slot, zIndex: number) {
|
||||||
pixiObject.position.set(slot.bone.worldX, slot.bone.worldY);
|
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.rotation = slot.bone.getWorldRotationX() * MathUtils.degRad;
|
||||||
pixiObject.zIndex = zIndex + 1;
|
pixiObject.zIndex = zIndex + 1;
|
||||||
pixiObject.alpha = this.skeleton.color.a * slot.color.a;
|
pixiObject.alpha = this.skeleton.color.a * slot.color.a;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user