Coplanar sketch should have diagnostic error. (#3269)

* artifactMapTweak

* typo
This commit is contained in:
Kurt Hutten
2024-08-05 12:04:53 +10:00
committed by GitHub
parent e5a26c42e6
commit a0167f6ba6
2 changed files with 35 additions and 1 deletions

View File

@ -240,6 +240,7 @@ export function getArtifactsToUpdate({
const response = responseMap[id]
const cmd = command.cmd
const returnArr: ReturnType<typeof getArtifactsToUpdate> = []
if (!response) return returnArr
if (cmd.type === 'enable_sketch_mode') {
const plane = getArtifact(currentPlaneId)
const pathIds = plane?.type === 'plane' ? plane?.pathIds : []
@ -316,7 +317,7 @@ export function getArtifactsToUpdate({
artifact: { ...path, segIds: [id] },
})
if (
response.type === 'modeling' &&
response?.type === 'modeling' &&
response.data.modeling_response.type === 'close_path'
) {
returnArr.push({