Browse Source

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

badlogic 5 years ago
parent
commit
5eb76df99f

+ 1 - 1
spine-ts/build/spine-all.js

@@ -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 it is too large
+ 0 - 0
spine-ts/build/spine-all.js.map


+ 1 - 1
spine-ts/build/spine-canvas.js

@@ -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 it is too large
+ 0 - 0
spine-ts/build/spine-canvas.js.map


+ 1 - 1
spine-ts/build/spine-core.js

@@ -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 it is too large
+ 0 - 0
spine-ts/build/spine-core.js.map


+ 1 - 1
spine-ts/build/spine-player.js

@@ -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 it is too large
+ 0 - 0
spine-ts/build/spine-player.js.map


+ 1 - 1
spine-ts/build/spine-threejs.js

@@ -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 it is too large
+ 0 - 0
spine-ts/build/spine-threejs.js.map


+ 1 - 1
spine-ts/build/spine-webgl.js

@@ -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 it is too large
+ 0 - 0
spine-ts/build/spine-webgl.js.map


+ 1 - 1
spine-ts/core/src/SkeletonJson.ts

@@ -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 {

Some files were not shown because too many files changed in this diff