step app from getting in weird state when selection face to sketch on

This commit is contained in:
Kurt Hutten Irev-Dev
2024-09-23 10:26:46 +10:00
parent 57b30c2d66
commit ab8d83e32e
2 changed files with 12 additions and 2 deletions

View File

@ -607,7 +607,13 @@ export const ModelingMachineProvider = ({
input.extrudePathToNode, input.extrudePathToNode,
input.faceInfo input.faceInfo
) )
if (trap(sketched)) return Promise.reject(sketched) if (err(sketched)) {
const sketchedError = new Error(
'Incompatible face, please try another'
)
trap(sketchedError)
return Promise.reject(sketchedError)
}
const { modifiedAst, pathToNode: pathToNewSketchNode } = sketched const { modifiedAst, pathToNode: pathToNewSketchNode } = sketched
await kclManager.executeAstMock(modifiedAst) await kclManager.executeAstMock(modifiedAst)

File diff suppressed because one or more lines are too long