Merge pull request #859 from altert/smallfix

don't draw tiles with opacity 0
This commit is contained in:
Ian Gilman 2016-02-23 10:26:59 -08:00
commit ef8ac2ecf8

View File

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