Skip to content

Commit

Permalink
Add animate once to DeleteAnimation
Browse files Browse the repository at this point in the history
Fix twirl weapon not mixing to next animation on delete of animation.
  • Loading branch information
MikalDev committed Jan 30, 2021
1 parent 336bda1 commit 7f30aef
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
Binary file added dist/Spine-v1.31.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.31.0",
"version": "1.31.1",
"author": "Mikal and Igor Gritsenko",
"website": "https://gritsenko.github.io/c3_spine_plugin",
"documentation": "https://gritsenko.github.io/c3_spine_plugin",
Expand Down
2 changes: 2 additions & 0 deletions src/c3runtime/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@
if(!track) return;

state.setEmptyAnimation(trackIndex, mixDuration);
spineBatcher.setInstanceRenderOnce(true, this.uid);
this.animateOnce = 1.0;
},

Play(){
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 @@ -305,6 +305,6 @@ class SpineBatch {

if (!globalThis.spineBatcher)
{
console.log('[Spine] SpineBatcher init, 1.31.0');
console.log('[Spine] SpineBatcher init, 1.31.1');
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.31.0";
const PLUGIN_VERSION = "1.31.1";
const PLUGIN_CATEGORY = "general";

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

0 comments on commit 7f30aef

Please sign in to comment.