Skip to content

Commit

Permalink
Allow attaching components that add Object3Ds to meshes
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo committed Jun 13, 2023
1 parent c7935ce commit 5d3535c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/inflators/model.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,6 @@ export function inflateModel(world: HubsWorld, rootEid: number, { model }: Model

const replacement = world.eid2obj.get(eid);
if (replacement) {
if (obj.type !== "Object3D") {
console.error(obj, replacement);
throw new Error("Failed to inflate model. Unexpected object type found before swap.");
}
if (obj === model) {
throw new Error("Failed to inflate model. Can't inflate alternative object type on root scene.");
}
Expand Down

0 comments on commit 5d3535c

Please sign in to comment.