[skeletonviewer] Don't apply hold previous to track 0 or to the first entry on a track.

This commit is contained in:
Nathan Sweet 2020-08-12 22:03:21 +02:00
parent 896e6a419c
commit 83931434cc

View File

@ -295,10 +295,10 @@ public class SkeletonViewer extends ApplicationAdapter {
entry.setMixDuration(ui.mixSlider.getValue());
} else {
entry = state.setAnimation(track, ui.animationList.getSelected(), ui.loopCheckbox.isChecked());
entry.setHoldPrevious(track > 0 && ui.holdPrevCheckbox.isChecked());
}
entry.setMixBlend(ui.addCheckbox.isChecked() ? MixBlend.add : MixBlend.replace);
entry.setReverse(ui.reverseCheckbox.isChecked());
entry.setHoldPrevious(ui.holdPrevCheckbox.isChecked());
entry.setAlpha(ui.alphaSlider.getValue());
}