From ac424c91641dbfa31a362b53c9e69264ad288365 Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Fri, 21 Apr 2023 08:52:24 +0200 Subject: [PATCH] Formatting. --- spine-ts/spine-canvas/src/SkeletonRenderer.ts | 4 ++-- spine-ts/spine-core/src/AtlasAttachmentLoader.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/spine-ts/spine-canvas/src/SkeletonRenderer.ts b/spine-ts/spine-canvas/src/SkeletonRenderer.ts index 01bc2efca..6088a8abc 100644 --- a/spine-ts/spine-canvas/src/SkeletonRenderer.ts +++ b/spine-ts/spine-canvas/src/SkeletonRenderer.ts @@ -124,12 +124,12 @@ export class SkeletonRenderer { if (attachment instanceof RegionAttachment) { let regionAttachment = attachment; vertices = this.computeRegionVertices(slot, regionAttachment, false); - triangles = SkeletonRenderer.QUAD_TRIANGLES; + triangles = SkeletonRenderer.QUAD_TRIANGLES; texture = (regionAttachment.region!.texture).getImage() as HTMLImageElement; } else if (attachment instanceof MeshAttachment) { let mesh = attachment; vertices = this.computeMeshVertices(slot, mesh, false); - triangles = mesh.triangles; + triangles = mesh.triangles; texture = (mesh.region!.texture).getImage() as HTMLImageElement; } else continue; diff --git a/spine-ts/spine-core/src/AtlasAttachmentLoader.ts b/spine-ts/spine-core/src/AtlasAttachmentLoader.ts index c8af304ed..aaac60208 100644 --- a/spine-ts/spine-core/src/AtlasAttachmentLoader.ts +++ b/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;