From 13b3df25e932b3671401272adb8d1d6e6b0936c8 Mon Sep 17 00:00:00 2001 From: fallenoak Date: Sun, 14 Jan 2024 22:44:15 -0600 Subject: [PATCH] chore(model): remove unnecessary promise --- src/lib/model/ModelManager.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/model/ModelManager.ts b/src/lib/model/ModelManager.ts index 397e6d3..907f0ba 100644 --- a/src/lib/model/ModelManager.ts +++ b/src/lib/model/ModelManager.ts @@ -68,7 +68,7 @@ class ModelManager { async #loadResources(refId: string, path: string) { const spec = await this.#loader.loadSpec(path); - const geometry = await this.#createGeometry(spec); + const geometry = this.#createGeometry(spec); const materials = await this.#createMaterials(spec); const resources: ModelResources = { @@ -83,7 +83,7 @@ class ModelManager { return resources; } - async #createGeometry(spec: ModelSpec) { + #createGeometry(spec: ModelSpec) { const vertexBuffer = spec.geometry.vertexBuffer; const indexBuffer = spec.geometry.indexBuffer;