소스 검색

Updating the feature manager feature usage

Richard May 4 년 전
부모
커밋
34ca5d2320
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/XR/webXRFeaturesManager.ts

+ 1 - 1
src/XR/webXRFeaturesManager.ts

@@ -337,7 +337,7 @@ export class WebXRFeaturesManager implements IDisposable {
 
             if (attachIfPossible) {
                 // if session started already, request and enable
-                if (this._xrSessionManager.session && !feature.featureImplementation.attached) {
+                if (this._xrSessionManager.session && !this._features[name].featureImplementation.attached) {
                     // enable feature
                     this.attachFeature(name);
                 }