Fix grid bleeding through from other layers by only enabling support for
grid rendering for current layer.
This commit is contained in:
parent
230a38bf07
commit
379c61a11d
1 changed files with 3 additions and 2 deletions
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
var cfg = {
|
var cfg = {
|
||||||
'zoom': this.calculateZoom_(),
|
'zoom': this.calculateZoom_(),
|
||||||
'supportGridRendering' : true,
|
'supportGridRendering' : false,
|
||||||
'height' : this.getContainerHeight_(),
|
'height' : this.getContainerHeight_(),
|
||||||
'width' : this.getContainerWidth_(),
|
'width' : this.getContainerWidth_(),
|
||||||
'xOffset' : 0,
|
'xOffset' : 0,
|
||||||
|
@ -30,9 +30,10 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
this.overlayRenderer = new pskl.rendering.frame.CachedFrameRenderer(this.container, cfg, ['canvas-overlay']);
|
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.onionSkinRenderer = pskl.rendering.OnionSkinRenderer.createInContainer(this.container, cfg, piskelController);
|
||||||
this.layersRenderer = new pskl.rendering.layer.LayersRenderer(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 = new pskl.rendering.CompositeRenderer();
|
||||||
this.compositeRenderer
|
this.compositeRenderer
|
||||||
|
|
Loading…
Reference in a new issue