mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 07:14:55 +08:00
Fixed Skeleton Viewer loading with mixing multiple checked.
This commit is contained in:
parent
6c2ec1b46b
commit
e4320e281f
@ -185,6 +185,7 @@ public class SkeletonViewer extends ApplicationAdapter {
|
||||
skeleton.updateWorldTransform();
|
||||
|
||||
state = new AnimationState(new AnimationStateData(skeletonData));
|
||||
state.setMultipleMixing(ui.multipleMixingCheckbox.isChecked());
|
||||
state.addListener(new AnimationStateAdapter() {
|
||||
public void event (TrackEntry entry, Event event) {
|
||||
ui.toast(event.getData().getName());
|
||||
@ -702,7 +703,7 @@ public class SkeletonViewer extends ApplicationAdapter {
|
||||
|
||||
multipleMixingCheckbox.addListener(new ChangeListener() {
|
||||
public void changed (ChangeEvent event, Actor actor) {
|
||||
state.setMultipleMixing(multipleMixingCheckbox.isChecked());
|
||||
if (state != null) state.setMultipleMixing(multipleMixingCheckbox.isChecked());
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user