Browse Source

Minor fix

bghgary 5 years ago
parent
commit
b1e0a372d0
1 changed files with 2 additions and 1 deletions
  1. 2 1
      loaders/src/glTF/2.0/Extensions/KHR_texture_basisu.ts

+ 2 - 1
loaders/src/glTF/2.0/Extensions/KHR_texture_basisu.ts

@@ -19,13 +19,14 @@ export class KHR_texture_basisu implements IGLTFLoaderExtension {
     public readonly name = NAME;
 
     /** Defines whether this extension is enabled. */
-    public enabled = true;
+    public enabled: boolean;
 
     private _loader: GLTFLoader;
 
     /** @hidden */
     constructor(loader: GLTFLoader) {
         this._loader = loader;
+        this.enabled = loader.isExtensionUsed(NAME);
     }
 
     /** @hidden */