浏览代码

make sure all meshes are a;ways selected

Raanan Weber 4 年之前
父节点
当前提交
e0b24feeea
共有 1 个文件被更改,包括 1 次插入0 次删除
  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) {