[libgdx] Reset rotation direction when changing TrackEntry alpha.

This commit is contained in:
NathanSweet 2016-11-20 15:08:01 +01:00
parent dced060658
commit e7d25dc2cb

View File

@ -597,7 +597,10 @@ public class SkeletonViewer extends ApplicationAdapter {
int track = trackButtons.getCheckedIndex();
if (track > 0) {
TrackEntry current = state.getCurrent(track);
if (current != null) current.setAlpha(alphaSlider.getValue());
if (current != null) {
current.setAlpha(alphaSlider.getValue());
current.resetRotationDirections();
}
}
}
});