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:
parent
41a166fb0e
commit
58c763144d
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user