Skip to content

Commit

Permalink
Revert "Allow attaching components that add Object3Ds to meshes"
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo committed Aug 8, 2023
1 parent d6c3cb3 commit 22fdddf
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 22fdddf

Please sign in to comment.