Browse Source

make sure all meshes are a;ways selected

Raanan Weber 4 năm trước cách đây
mục cha
commit
e0b24feeea
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      src/XR/features/WebXRHandTracking.ts

+ 1 - 0
src/XR/features/WebXRHandTracking.ts

@@ -197,6 +197,7 @@ export class WebXRHand implements IDisposable {
         if (this._handMesh && this._rigMapping) {
             this._defaultHandMesh = false;
             this._handMesh.alwaysSelectAsActiveMesh = true;
+            this._handMesh.getChildMeshes().forEach((m) => (m.alwaysSelectAsActiveMesh = true));
             this.onHandMeshReadyObservable.notifyObservers(this);
         } else {
             if (!disableDefaultHandMesh) {