File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
11
11
- OnXRChange is called from the Update loop.
12
12
13
13
### Fixed
14
- - User scaling issue in FullView WebGLTemplates
14
+ - User scaling issue in FullView WebGLTemplates.
15
+ - Issue with disabling hand when not tracking.
15
16
16
17
## [ 0.9.0] - 2021-04-16
17
18
### Added
Original file line number Diff line number Diff line change @@ -619,10 +619,16 @@ setTimeout(function () {
619
619
}
620
620
xrHand . enabled = 1 ;
621
621
if ( inputSource . hand . values ) {
622
- frame . fillPoses ( inputSource . hand . values ( ) , refSpace , xrHand . poses ) ;
622
+ if ( ! frame . fillPoses ( inputSource . hand . values ( ) , refSpace , xrHand . poses ) ) {
623
+ xrHand . enabled = 0 ;
624
+ continue ;
625
+ }
623
626
frame . fillJointRadii ( inputSource . hand . values ( ) , xrHand . radii ) ;
624
627
} else {
625
- frame . fillPoses ( inputSource . hand , refSpace , xrHand . poses ) ;
628
+ if ( ! frame . fillPoses ( inputSource . hand , refSpace , xrHand . poses ) ) {
629
+ xrHand . enabled = 0 ;
630
+ continue ;
631
+ }
626
632
frame . fillJointRadii ( inputSource . hand , xrHand . radii ) ;
627
633
}
628
634
for ( var j = 0 ; j < 25 ; j ++ ) {
You can’t perform that action at this time.
0 commit comments