Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
set material for meshes coming in.
Browse files Browse the repository at this point in the history
vim-sroberge committed Nov 8, 2023
1 parent 9cd9edc commit 0e60327
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vim-loader/scene.ts
Original file line number Diff line number Diff line change
@@ -152,8 +152,8 @@ export class Scene {
mesh.mesh.matrix.copy(this._matrix)
this.updateBox(mesh.boundingBox)

// Add current and future submeshes
mesh.getSubmeshes().forEach((s) => this.addSubmesh(s))
mesh.setMaterial(this.material)

this.meshes.push(mesh)
this.setDirty()

0 comments on commit 0e60327

Please sign in to comment.