Procházet zdrojové kódy

Transfer sampling mode to new texture when cloning an existing one

jahow před 10 roky
rodič
revize
182af5e2ee
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      Babylon/Materials/Textures/babylon.texture.ts

+ 2 - 2
Babylon/Materials/Textures/babylon.texture.ts

@@ -205,7 +205,7 @@
         }
 
         public clone(): Texture {
-            var newTexture = new BABYLON.Texture(this._texture.url, this.getScene(), this._noMipmap, this._invertY);
+            var newTexture = new BABYLON.Texture(this._texture.url, this.getScene(), this._noMipmap, this._invertY, this._samplingMode);
 
             // Base texture
             newTexture.hasAlpha = this.hasAlpha;
@@ -232,4 +232,4 @@
             return new Texture("data:" + name, scene, noMipmap, invertY, samplingMode, onLoad, onError, data);
         }
     }
-} 
+}