diff --git a/dist/Spine-v1.36.3.c3addon b/dist/Spine-v1.36.3.c3addon new file mode 100644 index 0000000..d41121a Binary files /dev/null and b/dist/Spine-v1.36.3.c3addon differ diff --git a/src/addon.json b/src/addon.json index 43bba0a..91bb300 100755 --- a/src/addon.json +++ b/src/addon.json @@ -3,7 +3,7 @@ "type": "plugin", "name": "Spine", "id": "Gritsenko_Spine", - "version": "1.36.2", + "version": "1.36.3", "author": "Mikal and Igor Gritsenko", "website": "https://gritsenko.github.io/c3_spine_plugin", "documentation": "https://gritsenko.github.io/c3_spine_plugin", diff --git a/src/c3runtime/instance.js b/src/c3runtime/instance.js index b3aec82..5af3c7b 100644 --- a/src/c3runtime/instance.js +++ b/src/c3runtime/instance.js @@ -425,6 +425,17 @@ } IsSpineReady() { + // Guard for case where sdkType does not exist (deleted on release) + if (this.sdkType === null || this.sdkType === undefined) + { + if (this.debug) console.warn('[Spine] IsSpineReady, sdkType not defined', this.sdkType); + if (globalThis.Sentry) + { + globalThis.Sentry.captureException('[Spine] IsSpineReady, sdkType not defined:'+this.sdkType); + } + return false; + } + if (this.isSkeletonLoaded) { return true; } diff --git a/src/c3runtime/spine-draw.js b/src/c3runtime/spine-draw.js index 873d3b0..7a43e2a 100644 --- a/src/c3runtime/spine-draw.js +++ b/src/c3runtime/spine-draw.js @@ -305,6 +305,6 @@ class SpineBatch { if (!globalThis.spineBatcher) { - console.log('[Spine] SpineBatcher init, 1.36.2'); + console.log('[Spine] SpineBatcher init, 1.36.3'); globalThis.spineBatcher = new SpineBatch(); } \ No newline at end of file diff --git a/src/plugin.js b/src/plugin.js index 034feda..4be3929 100755 --- a/src/plugin.js +++ b/src/plugin.js @@ -3,7 +3,7 @@ const C3 = self.C3; const PLUGIN_ID = "Gritsenko_Spine"; - const PLUGIN_VERSION = "1.36.2"; + const PLUGIN_VERSION = "1.36.3"; const PLUGIN_CATEGORY = "general"; const PLUGIN_CLASS = SDK.Plugins.Gritsenko_Spine = class SpinePlugin extends SDK.IPluginBase {