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 | ||||
|         if (intersectsProfileStart) { | ||||
|           const lastSegment = sketch.paths.slice(-1)[0] | ||||
|           const originCoords = createArrayExpression([ | ||||
|             createCallExpressionStdLib('profileStartX', [ | ||||
|               createPipeSubstitution(), | ||||
|             ]), | ||||
|             createCallExpressionStdLib('profileStartY', [ | ||||
|               createPipeSubstitution(), | ||||
|             ]), | ||||
|           const originCoords = createCallExpressionStdLib('profileStart', [ | ||||
|             createPipeSubstitution(), | ||||
|           ]) | ||||
|           modifiedAst = addCallExpressionsToPipe({ | ||||
|             node: kclManager.ast, | ||||
|  | ||||
| @ -73,10 +73,7 @@ export const getRectangleCallExpressions = ( | ||||
|   createCallExpressionStdLibKw('line', null, [ | ||||
|     createLabeledArg( | ||||
|       'endAbsolute', | ||||
|       createArrayExpression([ | ||||
|         createCallExpressionStdLib('profileStartX', [createPipeSubstitution()]), | ||||
|         createCallExpressionStdLib('profileStartY', [createPipeSubstitution()]), | ||||
|       ]) | ||||
|       createCallExpressionStdLib('profileStart', [createPipeSubstitution()]) | ||||
|     ), | ||||
|   ]), // close the rectangle | ||||
|   createCallExpressionStdLibKw('close', null, []), | ||||
|  | ||||
		Reference in New Issue
	
	Block a user