Explorar el Código

make sure all meshes are a;ways selected

Raanan Weber hace 5 años
padre
commit
e0b24feeea
Se han modificado 1 ficheros con 1 adiciones y 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) {
         if (this._handMesh && this._rigMapping) {
             this._defaultHandMesh = false;
             this._defaultHandMesh = false;
             this._handMesh.alwaysSelectAsActiveMesh = true;
             this._handMesh.alwaysSelectAsActiveMesh = true;
+            this._handMesh.getChildMeshes().forEach((m) => (m.alwaysSelectAsActiveMesh = true));
             this.onHandMeshReadyObservable.notifyObservers(this);
             this.onHandMeshReadyObservable.notifyObservers(this);
         } else {
         } else {
             if (!disableDefaultHandMesh) {
             if (!disableDefaultHandMesh) {