Skip to content

Commit

Permalink
Fix for glb load error (#6391)
Browse files Browse the repository at this point in the history
  • Loading branch information
slimbuck committed May 17, 2024
1 parent 778ff7a commit 480023f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/framework/parsers/glb-container-resource.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Debug } from '../../core/debug.js';

import { GraphNode } from '../../scene/graph-node.js';
import { MeshInstance } from '../../scene/mesh-instance.js';
import { Model } from '../../scene/model.js';
import { MorphInstance } from '../../scene/morph-instance.js';
Expand Down Expand Up @@ -191,7 +192,7 @@ class GlbContainerResource {
});

// return the scene hierarchy created from scene clones
return GlbContainerResource.createSceneHierarchy(sceneClones, 'Entity');
return GlbContainerResource.createSceneHierarchy(sceneClones, Entity);
}

// get material variants
Expand Down Expand Up @@ -295,7 +296,7 @@ class GlbContainerResource {
}

// node hierarchy for the model
model.graph = GlbContainerResource.createSceneHierarchy(glb.scenes, 'GraphNode');
model.graph = GlbContainerResource.createSceneHierarchy(glb.scenes, GraphNode);

// create mesh instance for meshes on nodes that are part of hierarchy
for (let i = 0; i < glb.nodes.length; i++) {
Expand Down

0 comments on commit 480023f

Please sign in to comment.