Skip to content

Commit d1bbb10

Browse files
committed
[ts][player] Restored skelUrl.
1 parent 28a503a commit d1bbb10

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spine-ts/spine-player/src/Player.ts

+1
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ export class SpinePlayer implements Disposable {
291291

292292
private validateConfig (config: SpinePlayerConfig) {
293293
if (!config) throw new Error("A configuration object must be passed to to new SpinePlayer().");
294+
if ((config as any).skelUrl) config.skeleton = (config as any).skelUrl;
294295
if (!config.skeleton && !config.jsonUrl && !config.binaryUrl) throw new Error("A URL must be specified for the skeleton JSON or binary file.");
295296
if (!config.scale) config.scale = 1;
296297
if (!config.atlas && !config.atlasUrl) throw new Error("A URL must be specified for the atlas file.");

0 commit comments

Comments
 (0)