mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2024-12-23 05:52:42 -05:00
Fix merge
This commit is contained in:
parent
bec01149ea
commit
f08c3e140f
1 changed files with 4 additions and 1 deletions
|
@ -33,7 +33,10 @@ const getRaster = function () {
|
||||||
const layer = _getLayer('isRasterLayer');
|
const layer = _getLayer('isRasterLayer');
|
||||||
// Generate blank raster
|
// Generate blank raster
|
||||||
if (layer.children.length === 0) {
|
if (layer.children.length === 0) {
|
||||||
const raster = new paper.Raster(rasterSrc);
|
const tmpCanvas = document.createElement('canvas');
|
||||||
|
tmpCanvas.width = ART_BOARD_WIDTH;
|
||||||
|
tmpCanvas.height = ART_BOARD_HEIGHT;
|
||||||
|
const raster = new paper.Raster(tmpCanvas);
|
||||||
raster.parent = layer;
|
raster.parent = layer;
|
||||||
raster.guide = true;
|
raster.guide = true;
|
||||||
raster.locked = true;
|
raster.locked = true;
|
||||||
|
|
Loading…
Reference in a new issue