1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-06-13 13:04:03 +00:00

Support empty layers in isValidShortKeyInternal() which aren't the topmost layer

This commit is contained in:
cyantree - Christoph Schreiber 2020-07-03 11:42:51 +02:00
parent 41a166fb0e
commit 58c763144d

View File

@ -220,10 +220,11 @@ export class ShapeDefinition extends BasicSerializableObject {
} }
} }
if (!anyFilled) { if (!anyFilled && i === sourceLayers.length - 1) {
// Empty layer // Topmost layer isn't allowed being empty
return false; return false;
} }
layers.push(quads); layers.push(quads);
} }