From 05d8f75cb4504ef8ba0efb0540b572aeb11b43c3 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Mon, 13 Apr 2026 22:32:33 +0200 Subject: [PATCH] Restore previous position in set-path-point-position-command --- src/commands/set-path-point-position-command.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/commands/set-path-point-position-command.ts b/src/commands/set-path-point-position-command.ts index 6a81316a..6e68eb74 100644 --- a/src/commands/set-path-point-position-command.ts +++ b/src/commands/set-path-point-position-command.ts @@ -99,6 +99,8 @@ export function createSetPathPointPositionCommand( return; } + const restoredPosition = cloneVec3(previousPosition); + const currentDocument = context.getDocument(); const path = currentDocument.paths[options.pathId]; @@ -122,7 +124,7 @@ export function createSetPathPointPositionCommand( index === pointIndex ? { ...point, - position: cloneVec3(previousPosition) + position: cloneVec3(restoredPosition) } : point )