Explorar o código

make sure all meshes are a;ways selected

Raanan Weber %!s(int64=4) %!d(string=hai) anos
pai
achega
e0b24feeea
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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) {