[ts] Fixed curve parsing in SkeletonJson. Closes #1537.

This commit is contained in:
badlogic 2019-11-15 12:57:36 +01:00
parent a5bcb324ff
commit 5eb76df99f
13 changed files with 13 additions and 13 deletions

View File

@ -6147,7 +6147,7 @@ var spine;
skeletonData.animations.push(new spine.Animation(name, timelines, duration));
};
SkeletonJson.prototype.readCurve = function (map, timeline, frameIndex) {
if (!map.curve)
if (!map.hasOwnProperty("curve"))
return;
if (map.curve == "stepped")
timeline.setStepped(frameIndex);

File diff suppressed because one or more lines are too long

View File

@ -6147,7 +6147,7 @@ var spine;
skeletonData.animations.push(new spine.Animation(name, timelines, duration));
};
SkeletonJson.prototype.readCurve = function (map, timeline, frameIndex) {
if (!map.curve)
if (!map.hasOwnProperty("curve"))
return;
if (map.curve == "stepped")
timeline.setStepped(frameIndex);

File diff suppressed because one or more lines are too long

View File

@ -6147,7 +6147,7 @@ var spine;
skeletonData.animations.push(new spine.Animation(name, timelines, duration));
};
SkeletonJson.prototype.readCurve = function (map, timeline, frameIndex) {
if (!map.curve)
if (!map.hasOwnProperty("curve"))
return;
if (map.curve == "stepped")
timeline.setStepped(frameIndex);

File diff suppressed because one or more lines are too long

View File

@ -6147,7 +6147,7 @@ var spine;
skeletonData.animations.push(new spine.Animation(name, timelines, duration));
};
SkeletonJson.prototype.readCurve = function (map, timeline, frameIndex) {
if (!map.curve)
if (!map.hasOwnProperty("curve"))
return;
if (map.curve == "stepped")
timeline.setStepped(frameIndex);

File diff suppressed because one or more lines are too long

View File

@ -6147,7 +6147,7 @@ var spine;
skeletonData.animations.push(new spine.Animation(name, timelines, duration));
};
SkeletonJson.prototype.readCurve = function (map, timeline, frameIndex) {
if (!map.curve)
if (!map.hasOwnProperty("curve"))
return;
if (map.curve == "stepped")
timeline.setStepped(frameIndex);

File diff suppressed because one or more lines are too long

View File

@ -6147,7 +6147,7 @@ var spine;
skeletonData.animations.push(new spine.Animation(name, timelines, duration));
};
SkeletonJson.prototype.readCurve = function (map, timeline, frameIndex) {
if (!map.curve)
if (!map.hasOwnProperty("curve"))
return;
if (map.curve == "stepped")
timeline.setStepped(frameIndex);

File diff suppressed because one or more lines are too long

View File

@ -784,7 +784,7 @@ module spine {
}
readCurve (map: any, timeline: CurveTimeline, frameIndex: number) {
if (!map.curve) return;
if (!map.hasOwnProperty("curve")) return;
if (map.curve == "stepped")
timeline.setStepped(frameIndex);
else {