cost part001 = startSketchOn(..) should be undone . . . (#1404)

* undo sketch if no lines have been created

* fix sketch axis bug

* fix wrong event origin bug

* race condition on animation ending

* remove logs

* codespell
This commit is contained in:
Kurt Hutten
2024-02-14 05:35:05 +11:00
committed by GitHub
parent cfbc77b62f
commit f30601bd2c
6 changed files with 94 additions and 79 deletions

View File

@ -241,12 +241,13 @@ class ClientSideScene {
engineCommandManager,
programMemoryOverride,
})
this.sceneProgramMemory = programMemory
const sketchGroup = sketchGroupFromPathToNode({
pathToNode: sketchPathToNode,
ast: kclManager.ast,
programMemory,
})
if (!Array.isArray(sketchGroup?.value)) return
this.sceneProgramMemory = programMemory
const group = new Group()
group.userData = {
type: SKETCH_GROUP_SEGMENTS,