mirror of
https://github.com/Doodle3D/Doodle3D-Core.git
synced 2024-12-22 11:03:48 +01:00
throw error when object is empty
This commit is contained in:
parent
0e6fd5fb1c
commit
e3cda119ce
@ -83,6 +83,10 @@ export function generateExportMesh(state, options = {}) {
|
||||
exportState.objectsById[id] = exportShapeData;
|
||||
}
|
||||
|
||||
if (Object.keys(exportState.objectsById).length === 0) {
|
||||
throw new Error('sketch is empty');
|
||||
}
|
||||
|
||||
const shapesManager = new ShapesManager({ toonShader: false });
|
||||
shapesManager.update(exportState);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user