瀏覽代碼

Move public property to constructor

Jorrit den Broeder 5 年之前
父節點
當前提交
e832eac66f
共有 1 個文件被更改,包括 1 次插入8 次删除
  1. 1 8
      src/Misc/assetsManager.ts

+ 1 - 8
src/Misc/assetsManager.ts

@@ -477,11 +477,6 @@ export class TextureAssetTask extends AbstractAssetTask implements ITextureAsset
     public texture: Texture;
 
     /**
-     * Defines if texture must be inverted on Y axis (default is false)
-     */
-    public invertY: boolean = false; // note that Texture defaults to true when using its constructor
-
-    /**
      * Callback called when the task is successful
      */
     public onSuccess: (task: TextureAssetTask) => void;
@@ -514,14 +509,12 @@ export class TextureAssetTask extends AbstractAssetTask implements ITextureAsset
         /**
          * Defines if texture must be inverted on Y axis (default is false)
          */
-        invertY: boolean = false,
+        public invertY: boolean = false, // note that Texture defaults to true when using its constructor
         /**
          * Defines the sampling mode to use (default is Texture.TRILINEAR_SAMPLINGMODE)
          */
         public samplingMode: number = Texture.TRILINEAR_SAMPLINGMODE) {
         super(name);
-
-        this.invertY = invertY;
     }
 
     /**