small bug

This commit is contained in:
Kurt Hutten Irev-Dev
2025-02-10 17:45:35 +11:00
parent 3e1f8584ea
commit db895d6801

View File

@ -1473,12 +1473,13 @@ export class SceneEntities {
sceneInfra.setCallbacks({
onMove: async (args) => {
const firstProfileIndex = Number(updatedSketchNodePaths[0][1][0])
const nodePathWithCorrectedIndexForTruncatedAst =
structuredClone(updatedEntryNodePath)
nodePathWithCorrectedIndexForTruncatedAst[1][0] =
Number(nodePathWithCorrectedIndexForTruncatedAst[1][0]) -
Number(planeNodePath[1][0]) -
1
firstProfileIndex
const _node = getNodeFromPath<VariableDeclaration>(
truncatedAst,
nodePathWithCorrectedIndexForTruncatedAst,