diff --git a/dist/Spine-v2.9.1.c3addon b/dist/Spine-v2.9.1.c3addon new file mode 100644 index 0000000..1d9d43e Binary files /dev/null and b/dist/Spine-v2.9.1.c3addon differ diff --git a/src/addon.json b/src/addon.json index e896f9c..a34ee98 100755 --- a/src/addon.json +++ b/src/addon.json @@ -3,7 +3,7 @@ "type": "plugin", "name": "Spine", "id": "Gritsenko_Spine", - "version": "2.9.0", + "version": "2.9.1", "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 68e41bd..ee43a3c 100644 --- a/src/c3runtime/instance.js +++ b/src/c3runtime/instance.js @@ -765,8 +765,12 @@ while (active.playTime >= animationDuration) active.playTime -= animationDuration; } + const skeleton = active.skeleton; state.update(delta); - state.apply(active.skeleton); + state.apply(skeleton); + if (this.physicsMode == spine.Physics.update) { + skeleton.update(delta); + } // Set track listeners if needed for set animation done w/ current time or current ratio // Set after update/apply so earlier events do not trigger diff --git a/src/c3runtime/spine-draw.js b/src/c3runtime/spine-draw.js index a2c4cef..5b8eb65 100644 --- a/src/c3runtime/spine-draw.js +++ b/src/c3runtime/spine-draw.js @@ -359,7 +359,7 @@ class SpineBatch { // @ts-ignore if (!globalThis.spineBatcher) { - console.info('[Spine] SpineBatcher init, 2.9.0, Spine 4.2.x compatible'); + console.info('[Spine] SpineBatcher init, 2.9.1, Spine 4.2.x compatible'); // @ts-ignore globalThis.spineBatcher = new SpineBatch(); } \ No newline at end of file diff --git a/src/plugin.js b/src/plugin.js index 5a4d954..f516456 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 = "2.9.0"; + const PLUGIN_VERSION = "2.9.1"; const PLUGIN_CATEGORY = "general"; const PLUGIN_CLASS = SDK.Plugins.Gritsenko_Spine = class SpinePlugin extends SDK.IPluginBase {