delay execute till after stream ready (#143)

This commit is contained in:
Kurt Hutten
2023-06-23 14:19:15 +10:00
committed by GitHub
parent fb3c34d5f3
commit 3510abfcb9
6 changed files with 43 additions and 27 deletions

View File

@ -293,7 +293,7 @@ export const line: SketchLineHelper = {
},
cmd_id: id,
file_id: uuidv4(),
}
},
})
const currentPath: Path = {
type: 'toPoint',
@ -1603,7 +1603,7 @@ export const close: InternalFn = (
},
cmd_id: id,
file_id: uuidv4(),
}
},
})
const currentPath: Path = {
@ -1678,20 +1678,20 @@ export const startSketchAt: InternalFn = (
},
})
engineCommandManager.sendSceneCommand({
type: 'ModelingCmdReq',
cmd: {
MovePathPen: {
path: pathId,
to: {
x: lineData.to[0],
y: lineData.to[1],
z: 0,
},
type: 'ModelingCmdReq',
cmd: {
MovePathPen: {
path: pathId,
to: {
x: lineData.to[0],
y: lineData.to[1],
z: 0,
},
},
cmd_id: id,
file_id: uuidv4(),
})
},
cmd_id: id,
file_id: uuidv4(),
})
const currentPath: Path = {
type: 'base',
to,