diff --git a/src/inflators/model.tsx b/src/inflators/model.tsx index 8c9b1e58fc..e0f6d18c56 100644 --- a/src/inflators/model.tsx +++ b/src/inflators/model.tsx @@ -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."); }