Procházet zdrojové kódy

Merge pull request #9025 from rickfromwork/featureManagerFeatureFix

Updating the feature manager feature usage
Raanan Weber před 5 roky
rodič
revize
5fc7eef15e
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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 (attachIfPossible) {
                 // if session started already, request and enable
                 // 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
                     // enable feature
                     this.attachFeature(name);
                     this.attachFeature(name);
                 }
                 }