Skip to content

Commit

Permalink
slight fix for pixi-spine main bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanpopelyshev committed Aug 3, 2022
1 parent c3c9197 commit d625529
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bundles/pixi-spine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@pixi-spine/loader-uni": "~3.1.0",
"@pixi-spine/runtime-3.7": "~3.1.0",
"@pixi-spine/runtime-3.8": "~3.1.0",
"@pixi-spine/runtime-4.0": "~3.1.0"
"@pixi-spine/runtime-4.1": "~3.1.0"
},
"scripts": {
"build": "rollup -c rollup.config.js --silent",
Expand Down
2 changes: 1 addition & 1 deletion bundles/pixi-spine/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {Spine, SpineParser} from '@pixi-spine/loader-uni';
export {Spine, SpineParser};
export * from '@pixi-spine/base';
export {SkeletonBounds} from '@pixi-spine/runtime-4.0';
export {SkeletonBounds} from '@pixi-spine/runtime-4.1';

SpineParser.registerLoaderPlugin();
2 changes: 1 addition & 1 deletion packages/loader-uni/src/SpineLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class UniJsonParser implements ISkeletonParser {
if (ver === SPINE_VERSION.VER38) {
parser = new spine38.SkeletonJson(new spine38.AtlasAttachmentLoader(atlas));
}
if (ver === SPINE_VERSION.VER40) {
if (ver === SPINE_VERSION.VER40 || ver === SPINE_VERSION.VER41) {
parser = new spine41.SkeletonJson(new spine41.AtlasAttachmentLoader(atlas));
}
if (!parser) {
Expand Down

0 comments on commit d625529

Please sign in to comment.