bugfix: dont request fingers before they exist
This commit is contained in:
parent
82ab6e2882
commit
cc49c4ad92
File diff suppressed because one or more lines are too long
|
@ -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
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue