From 609c07c36524535d1d0c4dfd1dc5c50113ece78f Mon Sep 17 00:00:00 2001 From: Davide Tantillo Date: Tue, 27 Jan 2026 10:18:20 +0100 Subject: [PATCH] [ts] Allow setSkin to accept null to unset skins. --- spine-ts/spine-core/src/Skeleton.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-ts/spine-core/src/Skeleton.ts b/spine-ts/spine-core/src/Skeleton.ts index 928f0a8ac..1d23b8a53 100644 --- a/spine-ts/spine-core/src/Skeleton.ts +++ b/spine-ts/spine-core/src/Skeleton.ts @@ -510,7 +510,7 @@ export class Skeleton { * {@link #setSlotsToSetupPose()}. Also, often {@link AnimationState#apply()} is called before the next time the * skeleton is rendered to allow any attachment keys in the current animation(s) to hide or show attachments from the new skin. * @param newSkin May be null. */ - setSkin (newSkin: Skin) { + setSkin (newSkin: Skin | null) { if (newSkin == this.skin) return; if (newSkin) { if (this.skin)