mirror of
https://github.com/viliusle/miniPaint.git
synced 2026-02-06 13:26:46 +00:00
flatten update: allow to flatten 1 layer
This commit is contained in:
parent
35adb236ad
commit
e37651a4d9
@ -10,11 +10,6 @@ class Layer_flatten_class {
|
||||
}
|
||||
|
||||
flatten() {
|
||||
if (config.layers.length == 1) {
|
||||
alertify.error('Needs at least 2 layers.');
|
||||
return;
|
||||
}
|
||||
|
||||
//create tmp canvas
|
||||
var canvas = document.createElement('canvas');
|
||||
canvas.width = config.WIDTH;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user