This commit is contained in:
badlogic 2017-10-30 14:20:45 +01:00
commit 70924a9942
3 changed files with 7 additions and 3 deletions

View File

@ -562,8 +562,10 @@ public class Animation {
break;
case first:
case replace:
bone.scaleX += (x - bone.scaleX * Math.signum(x)) * alpha;
bone.scaleY += (y - bone.scaleY * Math.signum(y)) * alpha;
bx = Math.abs(bone.scaleX) * Math.signum(x);
by = Math.abs(bone.scaleY) * Math.signum(y);
bone.scaleX = bx + (x - bx) * alpha;
bone.scaleY = by + (y - by) * alpha;
break;
case add:
bx = Math.signum(x);

View File

@ -658,7 +658,7 @@ public class AnimationState {
for (int i = 0, n = tracks.size; i < n; i++) {
TrackEntry entry = tracks.get(i);
if (entry != null && entry.mixBlend != MixBlend.add) entry.setTimelineData(null, mixingTo, propertyIDs);
if (entry != null && (i == 0 || entry.mixBlend != MixBlend.add)) entry.setTimelineData(null, mixingTo, propertyIDs);
}
}

View File

@ -496,6 +496,8 @@ public class SkeletonViewer extends ApplicationAdapter {
alphaSlider.setValue(1);
alphaSlider.setDisabled(true);
addCheckbox.setDisabled(true);
window.setMovable(false);
window.setResizable(false);