Skip to content

Commit

Permalink
chore(model): remove unnecessary promise
Browse files Browse the repository at this point in the history
  • Loading branch information
fallenoak committed Jan 15, 2024
1 parent a8e30f5 commit 13b3df2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/model/ModelManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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;

Expand Down

0 comments on commit 13b3df2

Please sign in to comment.