fix point and click code pane closed from start (#2750)
tests Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
@ -1583,7 +1583,10 @@ export function transformAstSketchLines({
|
||||
})
|
||||
|
||||
const varName = varDec.id.name
|
||||
const sketchGroup = programMemory.root?.[varName]
|
||||
let sketchGroup = programMemory.root?.[varName]
|
||||
if (sketchGroup.type === 'ExtrudeGroup') {
|
||||
sketchGroup = sketchGroup.sketchGroup
|
||||
}
|
||||
if (!sketchGroup || sketchGroup.type !== 'SketchGroup')
|
||||
throw new Error('not a sketch group')
|
||||
const seg = getSketchSegmentFromPathToNode(
|
||||
|
Reference in New Issue
Block a user