disable copilot in sketch mode (#2865)

* disable copilot in sketch mode

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fixes

Signed-off-by: Jess Frazelle <github@jessfraz.com>

---------

Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
Jess Frazelle
2024-07-01 21:05:31 -07:00
committed by GitHub
parent ee08948f54
commit dfef7338ee
5 changed files with 163 additions and 2 deletions

View File

@ -163,6 +163,12 @@ export const ModelingMachineProvider = ({
modelingMachine,
{
actions: {
'disable copilot': () => {
editorManager.setCopilotEnabled(false)
},
'enable copilot': () => {
editorManager.setCopilotEnabled(true)
},
'sketch exit execute': () => {
;(async () => {
await sceneInfra.camControls.snapToPerspectiveBeforeHandingBackControlToEngine()