flatten update: allow to flatten 1 layer

This commit is contained in:
viliusle 2022-03-13 18:53:00 +02:00
parent 35adb236ad
commit e37651a4d9

View File

@ -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;