Browse Source

[ts] Fixed SkeletonJson#readCurve.

badlogic 6 years ago
parent
commit
4ca84774a3

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

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


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

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


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

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


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

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


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

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


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

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


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

@@ -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));
 			}

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