From 0b3f629b75f397e908d5cc28cfbf153e1865e01e Mon Sep 17 00:00:00 2001 From: Manuel Martin Date: Tue, 8 Aug 2023 15:00:17 +0200 Subject: [PATCH] Check for KHR_lights_punctual --- src/components/gltf-model-plus.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/gltf-model-plus.js b/src/components/gltf-model-plus.js index 793e440fcf..4dbabdfe71 100644 --- a/src/components/gltf-model-plus.js +++ b/src/components/gltf-model-plus.js @@ -477,7 +477,11 @@ class GLTFHubsPlugin { * This was supported by the AFrame loader so this extension ensures backwards compatibility with all the existing scenes. * For more context about this see: https://github.com/mozilla/hubs/pull/6121 */ - if (node.mesh !== undefined || node.camera !== undefined) { + if ( + node.mesh !== undefined || + node.camera !== undefined || + (node.extensions && node.extensions["KHR_lights_punctual"]?.light !== undefined) + ) { const exts = node.extensions?.MOZ_hubs_components; if (exts) { const children = [];