bugfix: AFRAME.scenes[0] gets created later in v1.6.0

This commit is contained in:
Leon van Kammen 2024-12-16 14:19:12 +01:00
parent 78b60210bc
commit 659c2da2a5
14 changed files with 2649 additions and 12 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,8 @@
/*
* v0.5.1 generated at Mon Dec 16 02:18:40 PM CET 2024
* https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
/*
* v0.5.1 generated at Mon Dec 16 02:15:25 PM CET 2024
* https://xrfragment.org
@ -5253,7 +5258,7 @@ window.AFRAME.registerComponent('xrf', {
camera.setAttribute('xrf-fade','')
AFRAME.fade = camera.components['xrf-fade']
let aScene = AFRAME.scenes[0]
let aScene = document.querySelector('a-scene')
// enable XR fragments
let XRF = AFRAME.XRF = xrf.init({

5
dist/xrfragment.js vendored
View File

@ -1,3 +1,8 @@
/*
* v0.5.1 generated at Mon Dec 16 02:18:40 PM CET 2024
* https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
/*
* v0.5.1 generated at Mon Dec 16 02:15:25 PM CET 2024
* https://xrfragment.org

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
/*
* v0.5.1 generated at Mon Dec 16 02:15:25 PM CET 2024
* v0.5.1 generated at Mon Dec 16 02:18:40 PM CET 2024
* https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

View File

@ -1,5 +1,5 @@
/*
* v0.5.1 generated at Mon Dec 16 02:15:25 PM CET 2024
* v0.5.1 generated at Mon Dec 16 02:18:40 PM CET 2024
* https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

View File

@ -1,5 +1,5 @@
/*
* v0.5.1 generated at Mon Dec 16 02:15:25 PM CET 2024
* v0.5.1 generated at Mon Dec 16 02:18:40 PM CET 2024
* https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

View File

@ -1,5 +1,5 @@
/*
* v0.5.1 generated at Mon Dec 16 02:15:25 PM CET 2024
* v0.5.1 generated at Mon Dec 16 02:18:40 PM CET 2024
* https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

View File

@ -1,5 +1,5 @@
/*
* v0.5.1 generated at Mon Dec 16 02:15:25 PM CET 2024
* v0.5.1 generated at Mon Dec 16 02:18:40 PM CET 2024
* https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

View File

@ -1,5 +1,5 @@
/*
* v0.5.1 generated at Mon Dec 16 02:15:25 PM CET 2024
* v0.5.1 generated at Mon Dec 16 02:18:40 PM CET 2024
* https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

View File

@ -1,3 +1,8 @@
/*
* v0.5.1 generated at Mon Dec 16 02:18:40 PM CET 2024
* https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
/*
* v0.5.1 generated at Mon Dec 16 02:15:25 PM CET 2024
* https://xrfragment.org

View File

@ -1,3 +1,8 @@
/*
* v0.5.1 generated at Mon Dec 16 02:18:40 PM CET 2024
* https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
/*
* v0.5.1 generated at Mon Dec 16 02:15:25 PM CET 2024
* https://xrfragment.org

View File

@ -26,7 +26,7 @@ window.AFRAME.registerComponent('xrf', {
camera.setAttribute('xrf-fade','')
AFRAME.fade = camera.components['xrf-fade']
let aScene = AFRAME.scenes[0]
let aScene = document.querySelector('a-scene')
// enable XR fragments
let XRF = AFRAME.XRF = xrf.init({