Quellcode durchsuchen

Merge branch 'master' of https://github.com/BabylonJS/Babylon.js

David Catuhe vor 8 Jahren
Ursprung
Commit
5bdbcc62f7

+ 3 - 2
canvas2D/src/Engine/babylon.sprite2d.ts

@@ -355,8 +355,9 @@
             super(settings);
 
             this.texture = texture;
-            this.texture.wrapU = Texture.CLAMP_ADDRESSMODE;
-            this.texture.wrapV = Texture.CLAMP_ADDRESSMODE;
+            // This is removed to let the user the possibility to setup the addressing mode he wants
+            //this.texture.wrapU = Texture.CLAMP_ADDRESSMODE;
+            //this.texture.wrapV = Texture.CLAMP_ADDRESSMODE;
             this._useSize = false;
             this._spriteSize = (settings.spriteSize!=null) ? settings.spriteSize.clone() : null;
             this._spriteLocation = (settings.spriteLocation!=null) ? settings.spriteLocation.clone() : new Vector2(0, 0);

+ 3 - 2
dist/preview release/canvas2D/babylon.canvas2d.js

@@ -13473,8 +13473,9 @@ var BABYLON;
             }
             _this = _super.call(this, settings) || this;
             _this.texture = texture;
-            _this.texture.wrapU = BABYLON.Texture.CLAMP_ADDRESSMODE;
-            _this.texture.wrapV = BABYLON.Texture.CLAMP_ADDRESSMODE;
+            // This is removed to let the user the possibility to setup the addressing mode he wants
+            //this.texture.wrapU = Texture.CLAMP_ADDRESSMODE;
+            //this.texture.wrapV = Texture.CLAMP_ADDRESSMODE;
             _this._useSize = false;
             _this._spriteSize = (settings.spriteSize != null) ? settings.spriteSize.clone() : null;
             _this._spriteLocation = (settings.spriteLocation != null) ? settings.spriteLocation.clone() : new BABYLON.Vector2(0, 0);

Datei-Diff unterdrückt, da er zu groß ist
+ 5 - 5
dist/preview release/canvas2D/babylon.canvas2d.min.js