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

@ -709,6 +709,7 @@ export const modelingMachine = createMachine(
'remove sketch grid',
'engineToClient cam sync direction',
'Reset Segment Overlays',
'enable copilot',
],
entry: [
@ -719,7 +720,11 @@ export const modelingMachine = createMachine(
},
'Sketch no face': {
entry: ['show default planes', 'set selection filter to faces only'],
entry: [
'disable copilot',
'show default planes',
'set selection filter to faces only',
],
exit: ['hide default planes', 'set selection filter to defaults'],
on: {
@ -727,6 +732,9 @@ export const modelingMachine = createMachine(
target: 'animating to plane',
actions: ['reset sketch metadata'],
},
Cancel: {
actions: ['enable copilot'],
},
},
},
@ -748,7 +756,7 @@ export const modelingMachine = createMachine(
id: 'animate-to-sketch',
onDone: {
target: 'Sketch',
actions: 'set new sketch metadata',
actions: ['disable copilot', 'set new sketch metadata'],
},
},
],