save path id on path create (#849)
This commit is contained in:
@ -83,16 +83,16 @@ export const ModelingMachineProvider = ({
|
|||||||
'show default planes': () => {
|
'show default planes': () => {
|
||||||
kclManager.showPlanes()
|
kclManager.showPlanes()
|
||||||
},
|
},
|
||||||
'create path': async () => {
|
'create path': assign({
|
||||||
|
sketchEnginePathId: () => {
|
||||||
const sketchUuid = uuidv4()
|
const sketchUuid = uuidv4()
|
||||||
const proms = [
|
|
||||||
engineCommandManager.sendSceneCommand({
|
engineCommandManager.sendSceneCommand({
|
||||||
type: 'modeling_cmd_req',
|
type: 'modeling_cmd_req',
|
||||||
cmd_id: sketchUuid,
|
cmd_id: sketchUuid,
|
||||||
cmd: {
|
cmd: {
|
||||||
type: 'start_path',
|
type: 'start_path',
|
||||||
},
|
},
|
||||||
}),
|
})
|
||||||
engineCommandManager.sendSceneCommand({
|
engineCommandManager.sendSceneCommand({
|
||||||
type: 'modeling_cmd_req',
|
type: 'modeling_cmd_req',
|
||||||
cmd_id: uuidv4(),
|
cmd_id: uuidv4(),
|
||||||
@ -100,10 +100,10 @@ export const ModelingMachineProvider = ({
|
|||||||
type: 'edit_mode_enter',
|
type: 'edit_mode_enter',
|
||||||
target: sketchUuid,
|
target: sketchUuid,
|
||||||
},
|
},
|
||||||
}),
|
})
|
||||||
]
|
return sketchUuid
|
||||||
await Promise.all(proms)
|
|
||||||
},
|
},
|
||||||
|
}),
|
||||||
'AST start new sketch': assign((_, { data: { coords, axis } }) => {
|
'AST start new sketch': assign((_, { data: { coords, axis } }) => {
|
||||||
// Something really weird must have happened for this to happen.
|
// Something really weird must have happened for this to happen.
|
||||||
if (!axis) {
|
if (!axis) {
|
||||||
|
@ -765,7 +765,6 @@ export class EngineCommandManager {
|
|||||||
streamWidth: number
|
streamWidth: number
|
||||||
streamHeight: number
|
streamHeight: number
|
||||||
}) {
|
}) {
|
||||||
console.log('handleResize', streamWidth, streamHeight)
|
|
||||||
if (!this.engineConnection?.isReady()) {
|
if (!this.engineConnection?.isReady()) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user