bugfix: dont request fingers before they exist

This commit is contained in:
Leon van Kammen 2024-09-24 18:21:46 +02:00
parent 82ab6e2882
commit cc49c4ad92
13 changed files with 1704 additions and 8 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,8 @@
/*
* v0.5.1 generated at Tue Sep 24 06:21:18 PM CEST 2024
* https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
/*
* v0.5.1 generated at Fri Aug 2 10:04:04 AM UTC 2024
* https://xrfragment.org
@ -5158,6 +5163,7 @@ AFRAME.registerSystem('xrf-hands',{
},
tick: function(){
if( !this.indexFinger ) return
if( !this.el.sceneEl.renderer.xr.isPresenting || !this.indexFinger.length ) return
for( let i = 0; i < this.indexFinger.length; i++ ){
let indexFinger = this.indexFinger[i]

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 Fri Aug 2 10:04:04 AM UTC 2024
* v0.5.1 generated at Tue Sep 24 06:21:18 PM CEST 2024
* https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

View File

@ -1,5 +1,5 @@
/*
* v0.5.1 generated at Fri Aug 2 10:04:04 AM UTC 2024
* v0.5.1 generated at Tue Sep 24 06:21:18 PM CEST 2024
* https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

View File

@ -1,5 +1,5 @@
/*
* v0.5.1 generated at Fri Aug 2 10:04:04 AM UTC 2024
* v0.5.1 generated at Tue Sep 24 06:21:18 PM CEST 2024
* https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

View File

@ -1,5 +1,5 @@
/*
* v0.5.1 generated at Fri Aug 2 10:04:04 AM UTC 2024
* v0.5.1 generated at Tue Sep 24 06:21:18 PM CEST 2024
* https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

View File

@ -1,5 +1,5 @@
/*
* v0.5.1 generated at Fri Aug 2 10:04:04 AM UTC 2024
* v0.5.1 generated at Tue Sep 24 06:21:18 PM CEST 2024
* https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

View File

@ -1,5 +1,5 @@
/*
* v0.5.1 generated at Fri Aug 2 10:04:04 AM UTC 2024
* v0.5.1 generated at Tue Sep 24 06:21:18 PM CEST 2024
* https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

View File

@ -1,3 +1,8 @@
/*
* v0.5.1 generated at Tue Sep 24 06:21:18 PM CEST 2024
* https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
/*
* v0.5.1 generated at Fri Aug 2 10:04:04 AM UTC 2024
* https://xrfragment.org

View File

@ -1,3 +1,8 @@
/*
* v0.5.1 generated at Tue Sep 24 06:21:18 PM CEST 2024
* https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
/*
* v0.5.1 generated at Fri Aug 2 10:04:04 AM UTC 2024
* https://xrfragment.org

View File

@ -7,6 +7,7 @@ AFRAME.registerSystem('xrf-hands',{
},
tick: function(){
if( !this.indexFinger ) return
if( !this.el.sceneEl.renderer.xr.isPresenting || !this.indexFinger.length ) return
for( let i = 0; i < this.indexFinger.length; i++ ){
let indexFinger = this.indexFinger[i]