Point-and-click generates 'profileStart' not [profileStartX, profileStartY]
This commit is contained in:
@ -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,
|
||||||
|
|||||||
@ -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, []),
|
||||||
|
|||||||
Reference in New Issue
Block a user