mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-10 09:08:42 +08:00
Merge branch '3.7-beta' of https://github.com/esotericsoftware/spine-runtimes into 3.7-beta
This commit is contained in:
commit
70924a9942
@ -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);
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -496,6 +496,8 @@ public class SkeletonViewer extends ApplicationAdapter {
|
||||
|
||||
alphaSlider.setValue(1);
|
||||
alphaSlider.setDisabled(true);
|
||||
|
||||
addCheckbox.setDisabled(true);
|
||||
|
||||
window.setMovable(false);
|
||||
window.setResizable(false);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user