Fix grid bleeding through from other layers by only enabling support for

grid rendering for current layer.
This commit is contained in:
Joanne Hong 2018-08-09 21:15:37 +01:00 committed by Julian Descottes
parent 230a38bf07
commit 379c61a11d

View file

@ -22,7 +22,7 @@
var cfg = {
'zoom': this.calculateZoom_(),
'supportGridRendering' : true,
'supportGridRendering' : false,
'height' : this.getContainerHeight_(),
'width' : this.getContainerWidth_(),
'xOffset' : 0,
@ -30,9 +30,10 @@
};
this.overlayRenderer = new pskl.rendering.frame.CachedFrameRenderer(this.container, cfg, ['canvas-overlay']);
this.renderer = new pskl.rendering.frame.CachedFrameRenderer(this.container, cfg, ['drawing-canvas']);
this.onionSkinRenderer = pskl.rendering.OnionSkinRenderer.createInContainer(this.container, cfg, piskelController);
this.layersRenderer = new pskl.rendering.layer.LayersRenderer(this.container, cfg, piskelController);
cfg.supportGridRendering = true;
this.renderer = new pskl.rendering.frame.CachedFrameRenderer(this.container, cfg, ['drawing-canvas']);
this.compositeRenderer = new pskl.rendering.CompositeRenderer();
this.compositeRenderer