Add stamping flag to make draw ignore visibility

This commit is contained in:
Paul Kaplan 2017-03-07 11:19:39 -05:00
parent 03d9eed8d0
commit 983c704761

View File

@ -935,7 +935,7 @@ class RenderWebGL extends EventEmitter {
try {
gl.disable(gl.BLEND);
this._drawThese([stampID], ShaderManager.DRAW_MODE.default, projection);
this._drawThese([stampID], ShaderManager.DRAW_MODE.default, projection, {isStamping: true});
} finally {
gl.enable(gl.BLEND);
}
@ -1045,8 +1045,8 @@ class RenderWebGL extends EventEmitter {
const drawable = this._allDrawables[drawableID];
/** @todo check if drawable is inside the viewport before anything else */
// Hidden drawables (e.g., by a "hide" block) are never drawn.
if (!drawable.getVisible()) continue;
// Hidden drawables (e.g., by a "hide" block) are not drawn unless stamping
if (!drawable.getVisible() && !opts.isStamping) continue;
const drawableScale = drawable.scale;