From 94a41747491b1d9764f5a7fca0ebc4c5f6f8cd33 Mon Sep 17 00:00:00 2001 From: Manuel Martin Date: Fri, 30 Jun 2023 16:30:09 +0200 Subject: [PATCH] Revert --- src/inflators/model.tsx | 4 ++++ 1 file changed, 4 insertions(+) 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."); }