Skip to content

Commit 71b4f0f

Browse files
committed
[ts][threejs] Fixed physics example.
1 parent 1f2cffe commit 71b4f0f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

spine-ts/spine-threejs/example/physics.html

+2-4
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@
3939
let skeletonFile = "celestial-circus-pro.json";
4040
let atlasFile = `celestial-circus${pma ? "-pma" : ""}.atlas`;
4141

42-
let animation = "eyeblink-long";
43-
4442
function init() {
4543
// create the THREE.JS camera, scene and renderer (WebGL)
4644
let width = window.innerWidth,
@@ -99,8 +97,8 @@
9997
parameters.alphaTest = 0.001;
10098
}
10199
);
102-
skeletonMesh.state.setAnimation(0, animation, true);
103-
skeletonMesh.state.setAnimation(1, "swing", true);
100+
skeletonMesh.state.setAnimation(0, "swing", true);
101+
skeletonMesh.state.setAnimation(1, "eyeblink-long", true);
104102
mesh.add(skeletonMesh);
105103

106104
skeletonMesh.position.y = -300;

0 commit comments

Comments
 (0)