Point-and-click generates 'profileStart' not [profileStartX, profileStartY]

This commit is contained in:
Adam Chalmers
2025-02-04 09:57:02 -06:00
parent 8397405998
commit 60e636471b
2 changed files with 3 additions and 11 deletions

View File

@ -791,13 +791,8 @@ export class SceneEntities {
// Snapping logic for the profile start handle // Snapping logic for the profile start handle
if (intersectsProfileStart) { if (intersectsProfileStart) {
const lastSegment = sketch.paths.slice(-1)[0] const lastSegment = sketch.paths.slice(-1)[0]
const originCoords = createArrayExpression([ const originCoords = createCallExpressionStdLib('profileStart', [
createCallExpressionStdLib('profileStartX', [
createPipeSubstitution(), createPipeSubstitution(),
]),
createCallExpressionStdLib('profileStartY', [
createPipeSubstitution(),
]),
]) ])
modifiedAst = addCallExpressionsToPipe({ modifiedAst = addCallExpressionsToPipe({
node: kclManager.ast, node: kclManager.ast,

View File

@ -73,10 +73,7 @@ export const getRectangleCallExpressions = (
createCallExpressionStdLibKw('line', null, [ createCallExpressionStdLibKw('line', null, [
createLabeledArg( createLabeledArg(
'endAbsolute', 'endAbsolute',
createArrayExpression([ createCallExpressionStdLib('profileStart', [createPipeSubstitution()])
createCallExpressionStdLib('profileStartX', [createPipeSubstitution()]),
createCallExpressionStdLib('profileStartY', [createPipeSubstitution()]),
])
), ),
]), // close the rectangle ]), // close the rectangle
createCallExpressionStdLibKw('close', null, []), createCallExpressionStdLibKw('close', null, []),