From d1bbb102d398a40c70bf1b9249aad913fb367b53 Mon Sep 17 00:00:00 2001 From: Davide Tantillo Date: Mon, 17 Jun 2024 10:57:41 +0200 Subject: [PATCH] [ts][player] Restored skelUrl. --- spine-ts/spine-player/src/Player.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/spine-ts/spine-player/src/Player.ts b/spine-ts/spine-player/src/Player.ts index f1e0d7259c..735b84d8aa 100644 --- a/spine-ts/spine-player/src/Player.ts +++ b/spine-ts/spine-player/src/Player.ts @@ -291,6 +291,7 @@ export class SpinePlayer implements Disposable { private validateConfig (config: SpinePlayerConfig) { if (!config) throw new Error("A configuration object must be passed to to new SpinePlayer()."); + if ((config as any).skelUrl) config.skeleton = (config as any).skelUrl; if (!config.skeleton && !config.jsonUrl && !config.binaryUrl) throw new Error("A URL must be specified for the skeleton JSON or binary file."); if (!config.scale) config.scale = 1; if (!config.atlas && !config.atlasUrl) throw new Error("A URL must be specified for the atlas file.");