Update path point deletion logic in App.tsx

This commit is contained in:
2026-04-13 22:28:24 +02:00
parent 7eaa6f2612
commit 49cd4f0cb1

View File

@@ -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);