diff --git a/packages/loader/src/gltf/parser/GLTFSceneParser.ts b/packages/loader/src/gltf/parser/GLTFSceneParser.ts index ed5ffaef2a..0f40f44cab 100644 --- a/packages/loader/src/gltf/parser/GLTFSceneParser.ts +++ b/packages/loader/src/gltf/parser/GLTFSceneParser.ts @@ -34,6 +34,8 @@ export class GLTFSceneParser extends GLTFParser { sceneRoot = context.get(GLTFParserType.Entity, sceneNodes[0]); } else { sceneRoot = new Entity(engine, "GLTF_ROOT"); + // @ts-ignore + sceneRoot._markAsTemplate(glTFResource); for (let i = 0; i < sceneNodes.length; i++) { const childEntity = context.get(GLTFParserType.Entity, sceneNodes[i]); sceneRoot.addChild(childEntity);