Browse Source

Merge pull request #9025 from rickfromwork/featureManagerFeatureFix

Updating the feature manager feature usage
Raanan Weber 4 năm trước cách đây
mục cha
commit
5fc7eef15e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/XR/webXRFeaturesManager.ts

+ 1 - 1
src/XR/webXRFeaturesManager.ts

@@ -342,7 +342,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);
                 }