Skip to content

Commit

Permalink
Check for KHR_lights_punctual
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo committed Aug 8, 2023
1 parent f954c5d commit 0b3f629
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/gltf-model-plus.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
Expand Down

0 comments on commit 0b3f629

Please sign in to comment.