bugfix: AFRAME.scenes[0] gets created later in v1.6.0
This commit is contained in:
parent
78b60210bc
commit
659c2da2a5
File diff suppressed because one or more lines are too long
|
@ -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({
|
||||
|
|
|
@ -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
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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({
|
||||
|
|
Loading…
Reference in New Issue