Browse Source

Minor fix

bghgary 5 năm trước cách đây
mục cha
commit
b1e0a372d0
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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 */