mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-24 02:31:24 +08:00
[libgdx] Reset rotation direction when changing TrackEntry alpha.
This commit is contained in:
parent
dced060658
commit
e7d25dc2cb
@ -597,7 +597,10 @@ public class SkeletonViewer extends ApplicationAdapter {
|
|||||||
int track = trackButtons.getCheckedIndex();
|
int track = trackButtons.getCheckedIndex();
|
||||||
if (track > 0) {
|
if (track > 0) {
|
||||||
TrackEntry current = state.getCurrent(track);
|
TrackEntry current = state.getCurrent(track);
|
||||||
if (current != null) current.setAlpha(alphaSlider.getValue());
|
if (current != null) {
|
||||||
|
current.setAlpha(alphaSlider.getValue());
|
||||||
|
current.resetRotationDirections();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user