Mario Zechner 2 rokov pred
rodič
commit
ac424c9164

+ 2 - 2
spine-ts/spine-canvas/src/SkeletonRenderer.ts

@@ -124,12 +124,12 @@ export class SkeletonRenderer {
 			if (attachment instanceof RegionAttachment) {
 				let regionAttachment = <RegionAttachment>attachment;
 				vertices = this.computeRegionVertices(slot, regionAttachment, false);
-				triangles = SkeletonRenderer.QUAD_TRIANGLES;				
+				triangles = SkeletonRenderer.QUAD_TRIANGLES;
 				texture = (<CanvasTexture>regionAttachment.region!.texture).getImage() as HTMLImageElement;
 			} else if (attachment instanceof MeshAttachment) {
 				let mesh = <MeshAttachment>attachment;
 				vertices = this.computeMeshVertices(slot, mesh, false);
-				triangles = mesh.triangles;				
+				triangles = mesh.triangles;
 				texture = (<CanvasTexture>mesh.region!.texture).getImage() as HTMLImageElement;
 			} else
 				continue;

+ 3 - 3
spine-ts/spine-core/src/AtlasAttachmentLoader.ts

@@ -55,7 +55,7 @@ export class AtlasAttachmentLoader implements AttachmentLoader {
 			let path = sequence.getPath(basePath, i);
 			let region = this.atlas.findRegion(path);
 			if (region == null) throw new Error("Region not found in atlas: " + path + " (sequence: " + name + ")");
-			regions[i] = region;			
+			regions[i] = region;
 		}
 	}
 
@@ -65,7 +65,7 @@ export class AtlasAttachmentLoader implements AttachmentLoader {
 			this.loadSequence(name, path, sequence);
 		} else {
 			let region = this.atlas.findRegion(path);
-			if (!region) throw new Error("Region not found in atlas: " + path + " (region attachment: " + name + ")");			
+			if (!region) throw new Error("Region not found in atlas: " + path + " (region attachment: " + name + ")");
 			attachment.region = region;
 		}
 		return attachment;
@@ -77,7 +77,7 @@ export class AtlasAttachmentLoader implements AttachmentLoader {
 			this.loadSequence(name, path, sequence);
 		} else {
 			let region = this.atlas.findRegion(path);
-			if (!region) throw new Error("Region not found in atlas: " + path + " (mesh attachment: " + name + ")");			
+			if (!region) throw new Error("Region not found in atlas: " + path + " (mesh attachment: " + name + ")");
 			attachment.region = region;
 		}
 		return attachment;