honour sketch mode after execute (#885)

* enable stay in sketch mode after execute

* clean up
This commit is contained in:
Kurt Hutten
2023-10-18 08:03:02 +11:00
committed by GitHub
parent 93e806fc99
commit 82e8a491c4
5 changed files with 117 additions and 45 deletions

View File

@ -425,6 +425,12 @@ export const ModelingMachineProvider = ({
})
}, [modelingSend, modelingState.nextEvents])
useEffect(() => {
kclManager.registerExecuteCallback(() => {
modelingSend({ type: 'Re-execute' })
})
}, [modelingSend])
// useStateMachineCommands({
// state: settingsState,
// send: settingsSend,