Skip to content

Commit

Permalink
refactor: traverse objects to apply texture
Browse files Browse the repository at this point in the history
  • Loading branch information
Neosoulink committed Dec 21, 2023
1 parent 6ab8b67 commit 0f71f6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/experiences/blueprints/Scene.blueprint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export abstract class SceneBlueprint

if (!TEXTURES_MESH_BASIC_MATERIALS) return;

this.modelScene?.children?.forEach((child) => {
this.modelScene?.traverse((child) => {
this._modelChildrenTextures?.forEach((item) => {
const CHILD_TEXTURE =
TEXTURES_MESH_BASIC_MATERIALS[item.linkedTextureName];
Expand Down

0 comments on commit 0f71f6d

Please sign in to comment.