Sfoglia il codice sorgente

Merge pull request #9025 from rickfromwork/featureManagerFeatureFix

Updating the feature manager feature usage
Raanan Weber 4 anni fa
parent
commit
5fc7eef15e
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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);
                 }