diff --git a/dist/Spine-v1.36.8.c3addon b/dist/Spine-v1.36.8.c3addon new file mode 100644 index 0000000..2f1575d Binary files /dev/null and b/dist/Spine-v1.36.8.c3addon differ diff --git a/src/addon.json b/src/addon.json index 417ef39..0a13b2c 100755 --- a/src/addon.json +++ b/src/addon.json @@ -3,7 +3,7 @@ "type": "plugin", "name": "Spine", "id": "Gritsenko_Spine", - "version": "1.36.7", + "version": "1.36.8", "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 edf3ae2..3da0ae1 100644 --- a/src/c3runtime/instance.js +++ b/src/c3runtime/instance.js @@ -53,7 +53,7 @@ this.pngURI = "" - this.atlasURI = "*init-atlas-uri" + this.atlasURI = "*init-atlas-uri*" this.jsonURI = "" this.c3renderer = null this.runtime = inst.GetRuntime(); @@ -101,9 +101,6 @@ { this.loadSkeletonTextures(); } - - this.sdkType._texturesBatcherInitialized = true; - this.sdkType._texturesBatcherInitializing = false; } resize() { @@ -145,6 +142,7 @@ { this.atlasURI = this.atlasPath; this.jsonURI = this.jsonPath; + console.info('[Spine] loadSkeletonTextures, atlasURI, not preview', this.atlasURI, this.atlasPath, this.objectName, this.runtime.GetTickCount()); } this.sdkType._assetPaths[this.atlasURI] = this.atlasURI; @@ -172,10 +170,16 @@ } assetManager.loadText(assetTag, this.atlasURI); + + this.sdkType._texturesBatcherInitialized = true; + this.sdkType._texturesBatcherInitializing = false; + console.info('[Spine] loadSkeletonTextures, atlasURI', this.atlasURI, this.atlasPath, this.objectName, this.runtime.GetTickCount()); } loadSkeletonData() { + console.info('[Spine] loadSkeletonData, atlasURI', this.atlasURI, this.atlasPath, this.objectName, this.sdkType._texturesBatcherInitialized, this.runtime.GetTickCount()); + const assetManager = this.sdkType._assetManager;; const assetTag = this.sdkType._assetTag; const self = this; diff --git a/src/c3runtime/spine-draw.js b/src/c3runtime/spine-draw.js index e0ba72a..b0f5d91 100644 --- a/src/c3runtime/spine-draw.js +++ b/src/c3runtime/spine-draw.js @@ -313,6 +313,6 @@ class SpineBatch { if (!globalThis.spineBatcher) { - console.log('[Spine] SpineBatcher init, 1.36.7'); + console.log('[Spine] SpineBatcher init, 1.36.8'); globalThis.spineBatcher = new SpineBatch(); } \ No newline at end of file diff --git a/src/plugin.js b/src/plugin.js index 47794be..2cf60f0 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.7"; + const PLUGIN_VERSION = "1.36.8"; const PLUGIN_CATEGORY = "general"; const PLUGIN_CLASS = SDK.Plugins.Gritsenko_Spine = class SpinePlugin extends SDK.IPluginBase {