step app from getting in weird state when selection face to sketch on
This commit is contained in:
@ -607,7 +607,13 @@ export const ModelingMachineProvider = ({
|
||||
input.extrudePathToNode,
|
||||
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
|
||||
|
||||
await kclManager.executeAstMock(modifiedAst)
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user