Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Commit

Permalink
1.11.1 delete spineBatcher instance entry on instance Relase()
Browse files Browse the repository at this point in the history
  • Loading branch information
MikalDev committed Sep 6, 2020
1 parent 4129f33 commit 08963fe
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 3 deletions.
Binary file added dist/Spine-v1.11.1.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.11.0",
"version": "1.11.1",
"author": "Mikal and Igor Gritsenko",
"website": "https://gritsenko.github.io/c3_spine_plugin",
"documentation": "https://gritsenko.github.io/c3_spine_plugin",
Expand Down
1 change: 1 addition & 0 deletions src/c3runtime/instance.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@
}

Release() {
spineBatcher.removeInstance(this.GetInstance().GetUID());
super.Release();
if (this.c3renderer && this._elementTexture) this.c3renderer.DeleteTexture(this._elementTexture);
this.DEMO_NAME = null;
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 @@ -97,7 +97,7 @@ class SpineBatch {

removeInstance(uid)
{
this._skeletonInstances[uid].skeletonInfo = null
delete this._skeletonInstances[uid]
}

setInstanceInitialized(uid)
Expand Down
2 changes: 1 addition & 1 deletion src/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{

const PLUGIN_ID = "Gritsenko_Spine";
const PLUGIN_VERSION = "1.11.0";
const PLUGIN_VERSION = "1.11.1";
const PLUGIN_CATEGORY = "general";

const PLUGIN_CLASS = SDK.Plugins.Gritsenko_Spine = class SpinePlugin extends SDK.IPluginBase {
Expand Down

0 comments on commit 08963fe

Please sign in to comment.