don't draw tiles with opacity 0, see #806

This commit is contained in:
Alexey Tikhonov 2016-02-23 20:42:21 +03:00
parent 856f00994b
commit f51658f0af

View File

@ -240,9 +240,11 @@ $.extend($.TiledImage.prototype, $.EventSource.prototype, /** @lends OpenSeadrag
* Draws the TiledImage to its Drawer.
*/
draw: function() {
this._midDraw = true;
updateViewport( this );
this._midDraw = false;
if (this.opacity !== 0) {
this._midDraw = true;
updateViewport( this );
this._midDraw = false;
}
},
/**