[ts] Fixed SkeletonJson#readCurve.

This commit is contained in:
badlogic 2019-06-05 14:11:37 +02:00
parent 8ec6a9ef3b
commit 4ca84774a3
13 changed files with 13 additions and 13 deletions

View File

@ -5287,7 +5287,7 @@ var spine;
return;
if (map.curve == "stepped")
timeline.setStepped(frameIndex);
else if (Object.prototype.toString.call(map.curve) === '[object Array]') {
else {
var curve = map.curve;
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

View File

@ -5287,7 +5287,7 @@ var spine;
return;
if (map.curve == "stepped")
timeline.setStepped(frameIndex);
else if (Object.prototype.toString.call(map.curve) === '[object Array]') {
else {
var curve = map.curve;
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

View File

@ -5287,7 +5287,7 @@ var spine;
return;
if (map.curve == "stepped")
timeline.setStepped(frameIndex);
else if (Object.prototype.toString.call(map.curve) === '[object Array]') {
else {
var curve = map.curve;
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

View File

@ -5287,7 +5287,7 @@ var spine;
return;
if (map.curve == "stepped")
timeline.setStepped(frameIndex);
else if (Object.prototype.toString.call(map.curve) === '[object Array]') {
else {
var curve = map.curve;
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

View File

@ -5287,7 +5287,7 @@ var spine;
return;
if (map.curve == "stepped")
timeline.setStepped(frameIndex);
else if (Object.prototype.toString.call(map.curve) === '[object Array]') {
else {
var curve = map.curve;
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

View File

@ -5287,7 +5287,7 @@ var spine;
return;
if (map.curve == "stepped")
timeline.setStepped(frameIndex);
else if (Object.prototype.toString.call(map.curve) === '[object Array]') {
else {
var curve = map.curve;
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

View File

@ -775,7 +775,7 @@ module spine {
if (!map.curve) return;
if (map.curve == "stepped")
timeline.setStepped(frameIndex);
else if (Object.prototype.toString.call(map.curve) === '[object Array]') {
else {
let curve: number = map.curve;
timeline.setCurve(frameIndex, curve, this.getValue(map, "c2", 0), this.getValue(map, "c3", 1), this.getValue(map, "c4", 1));
}