mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
[ts] Fixed curve parsing in SkeletonJson. Closes #1537.
This commit is contained in:
parent
a5bcb324ff
commit
5eb76df99f
@ -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
@ -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
@ -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
@ -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
@ -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
@ -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
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user