Skip to content

Commit

Permalink
Revert
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo committed Jun 30, 2023
1 parent 32f654a commit 94a4174
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/inflators/model.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ 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 94a4174

Please sign in to comment.