bump kittycad lib (#1907)

This commit is contained in:
Kurt Hutten
2024-03-26 21:27:50 +11:00
committed by GitHub
parent 3688c8a05e
commit 39566174e7
4 changed files with 5 additions and 9 deletions

View File

@ -242,7 +242,6 @@ export const ModelingMachineProvider = ({
}
exportFromEngine({
source_unit: baseUnit,
format: format as Models['OutputFormat_type'],
}).catch((e) => toast.error('Error while exporting', e)) // TODO I think we need to throw the error from engineCommandManager
},

View File

@ -5,10 +5,8 @@ import { v4 as uuidv4 } from 'uuid'
// Isolating a function to call the engine to export the current scene.
// Because it has given us trouble in automated testing environments.
export function exportFromEngine({
source_unit,
format,
}: {
source_unit: Models['UnitLength_type']
format: Models['OutputFormat_type']
}) {
return engineCommandManager.sendSceneCommand({
@ -20,7 +18,6 @@ export function exportFromEngine({
// in the scene to export. In that case, you'd pass the IDs thru here.
entity_ids: [],
format,
source_unit,
},
cmd_id: uuidv4(),
})