From 49cd4f0cb199f1747a7c8e3f9f438d442127c8d5 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Mon, 13 Apr 2026 22:28:24 +0200 Subject: [PATCH] Update path point deletion logic in App.tsx --- src/app/App.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/app/App.tsx b/src/app/App.tsx index 08e0f44c..7ce242db 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -6383,13 +6383,20 @@ export function App({ store, initialStatusMessage }: AppProps) { }; const handleDeleteSelectedSceneItem = () => { + const selectedPathPoint = getSingleSelectedPathPoint(editorState.selection); + + if (selectedPathPoint !== null) { + handleDeletePathPoint(selectedPathPoint.pointId); + return true; + } + const selectedBrushId = getSingleSelectedBrushId(editorState.selection); if (selectedBrushId !== null) { return handleDeleteBrush(selectedBrushId); } - const selectedPathId = getSingleSelectedPathId(editorState.selection); + const selectedPathId = getSingleSelectedPathOwnerId(editorState.selection); if (selectedPathId !== null) { return handleDeletePath(selectedPathId);