瀏覽代碼

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);
                 }