Skip to content

Commit

Permalink
1.36.8 Add more init atlasURIU debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
MikalDev committed Feb 18, 2021
1 parent 453400d commit 72aef86
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
Binary file added dist/Spine-v1.36.8.c3addon
Binary file not shown.
2 changes: 1 addition & 1 deletion src/addon.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
12 changes: 8 additions & 4 deletions src/c3runtime/instance.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -101,9 +101,6 @@
{
this.loadSkeletonTextures();
}

this.sdkType._texturesBatcherInitialized = true;
this.sdkType._texturesBatcherInitializing = false;
}

resize() {
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/c3runtime/spine-draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
2 changes: 1 addition & 1 deletion src/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 72aef86

Please sign in to comment.