mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-27 04:01:24 +08:00
[ts] Fixed SkeletonJson#readCurve.
This commit is contained in:
parent
8ec6a9ef3b
commit
4ca84774a3
@ -5287,7 +5287,7 @@ var spine;
|
|||||||
return;
|
return;
|
||||||
if (map.curve == "stepped")
|
if (map.curve == "stepped")
|
||||||
timeline.setStepped(frameIndex);
|
timeline.setStepped(frameIndex);
|
||||||
else if (Object.prototype.toString.call(map.curve) === '[object Array]') {
|
else {
|
||||||
var curve = map.curve;
|
var curve = map.curve;
|
||||||
timeline.setCurve(frameIndex, curve, this.getValue(map, "c2", 0), this.getValue(map, "c3", 1), this.getValue(map, "c4", 1));
|
timeline.setCurve(frameIndex, curve, this.getValue(map, "c2", 0), this.getValue(map, "c3", 1), this.getValue(map, "c4", 1));
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -5287,7 +5287,7 @@ var spine;
|
|||||||
return;
|
return;
|
||||||
if (map.curve == "stepped")
|
if (map.curve == "stepped")
|
||||||
timeline.setStepped(frameIndex);
|
timeline.setStepped(frameIndex);
|
||||||
else if (Object.prototype.toString.call(map.curve) === '[object Array]') {
|
else {
|
||||||
var curve = map.curve;
|
var curve = map.curve;
|
||||||
timeline.setCurve(frameIndex, curve, this.getValue(map, "c2", 0), this.getValue(map, "c3", 1), this.getValue(map, "c4", 1));
|
timeline.setCurve(frameIndex, curve, this.getValue(map, "c2", 0), this.getValue(map, "c3", 1), this.getValue(map, "c4", 1));
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -5287,7 +5287,7 @@ var spine;
|
|||||||
return;
|
return;
|
||||||
if (map.curve == "stepped")
|
if (map.curve == "stepped")
|
||||||
timeline.setStepped(frameIndex);
|
timeline.setStepped(frameIndex);
|
||||||
else if (Object.prototype.toString.call(map.curve) === '[object Array]') {
|
else {
|
||||||
var curve = map.curve;
|
var curve = map.curve;
|
||||||
timeline.setCurve(frameIndex, curve, this.getValue(map, "c2", 0), this.getValue(map, "c3", 1), this.getValue(map, "c4", 1));
|
timeline.setCurve(frameIndex, curve, this.getValue(map, "c2", 0), this.getValue(map, "c3", 1), this.getValue(map, "c4", 1));
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -5287,7 +5287,7 @@ var spine;
|
|||||||
return;
|
return;
|
||||||
if (map.curve == "stepped")
|
if (map.curve == "stepped")
|
||||||
timeline.setStepped(frameIndex);
|
timeline.setStepped(frameIndex);
|
||||||
else if (Object.prototype.toString.call(map.curve) === '[object Array]') {
|
else {
|
||||||
var curve = map.curve;
|
var curve = map.curve;
|
||||||
timeline.setCurve(frameIndex, curve, this.getValue(map, "c2", 0), this.getValue(map, "c3", 1), this.getValue(map, "c4", 1));
|
timeline.setCurve(frameIndex, curve, this.getValue(map, "c2", 0), this.getValue(map, "c3", 1), this.getValue(map, "c4", 1));
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -5287,7 +5287,7 @@ var spine;
|
|||||||
return;
|
return;
|
||||||
if (map.curve == "stepped")
|
if (map.curve == "stepped")
|
||||||
timeline.setStepped(frameIndex);
|
timeline.setStepped(frameIndex);
|
||||||
else if (Object.prototype.toString.call(map.curve) === '[object Array]') {
|
else {
|
||||||
var curve = map.curve;
|
var curve = map.curve;
|
||||||
timeline.setCurve(frameIndex, curve, this.getValue(map, "c2", 0), this.getValue(map, "c3", 1), this.getValue(map, "c4", 1));
|
timeline.setCurve(frameIndex, curve, this.getValue(map, "c2", 0), this.getValue(map, "c3", 1), this.getValue(map, "c4", 1));
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -5287,7 +5287,7 @@ var spine;
|
|||||||
return;
|
return;
|
||||||
if (map.curve == "stepped")
|
if (map.curve == "stepped")
|
||||||
timeline.setStepped(frameIndex);
|
timeline.setStepped(frameIndex);
|
||||||
else if (Object.prototype.toString.call(map.curve) === '[object Array]') {
|
else {
|
||||||
var curve = map.curve;
|
var curve = map.curve;
|
||||||
timeline.setCurve(frameIndex, curve, this.getValue(map, "c2", 0), this.getValue(map, "c3", 1), this.getValue(map, "c4", 1));
|
timeline.setCurve(frameIndex, curve, this.getValue(map, "c2", 0), this.getValue(map, "c3", 1), this.getValue(map, "c4", 1));
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -775,7 +775,7 @@ module spine {
|
|||||||
if (!map.curve) return;
|
if (!map.curve) return;
|
||||||
if (map.curve == "stepped")
|
if (map.curve == "stepped")
|
||||||
timeline.setStepped(frameIndex);
|
timeline.setStepped(frameIndex);
|
||||||
else if (Object.prototype.toString.call(map.curve) === '[object Array]') {
|
else {
|
||||||
let curve: number = map.curve;
|
let curve: number = map.curve;
|
||||||
timeline.setCurve(frameIndex, curve, this.getValue(map, "c2", 0), this.getValue(map, "c3", 1), this.getValue(map, "c4", 1));
|
timeline.setCurve(frameIndex, curve, this.getValue(map, "c2", 0), this.getValue(map, "c3", 1), this.getValue(map, "c4", 1));
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user