Pārlūkot izejas kodu

Updating the feature manager feature usage

Richard May 4 gadi atpakaļ
vecāks
revīzija
34ca5d2320
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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);
                 }