mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-05 02:06:53 +08:00
[ts][webgl] Fix drag-and-drop.js not setting animation.
This commit is contained in:
parent
dbabe96e6c
commit
e436d873fa
@ -21,7 +21,7 @@ class App {
|
|||||||
// Setup listener for animation selection box
|
// Setup listener for animation selection box
|
||||||
let animationSelectBox = document.body.querySelector("#animations");
|
let animationSelectBox = document.body.querySelector("#animations");
|
||||||
animationSelectBox.onchange = () => {
|
animationSelectBox.onchange = () => {
|
||||||
// this.animationState.setAnimation(0, animationSelectBox.value, true);
|
this.animationState.setAnimation(0, animationSelectBox.value, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Setup listener for the PMA checkbox
|
// Setup listener for the PMA checkbox
|
||||||
@ -123,8 +123,7 @@ class App {
|
|||||||
option.selected = animation.name == animationName;
|
option.selected = animation.name == animationName;
|
||||||
animationSelectBox.appendChild(option);
|
animationSelectBox.appendChild(option);
|
||||||
}
|
}
|
||||||
|
this.animationState.setAnimation(0, animationName, true);
|
||||||
// if (animationName) this.animationState.setAnimation(0, animationName, true);
|
|
||||||
|
|
||||||
// Center the skeleton in the viewport
|
// Center the skeleton in the viewport
|
||||||
this.centerSkeleton();
|
this.centerSkeleton();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user