|
@@ -3758,18 +3758,20 @@ class App extends React.Component<AppProps, AppState> {
|
|
|
const selectedElements = this.scene.getSelectedElements(this.state);
|
|
|
|
|
|
if (selectedElements.length === 1 && isLinearElement(selectedElements[0])) {
|
|
|
- const pointUnderCursorIndex = LinearElementEditor.getPointIndexUnderCursor(
|
|
|
- selectedElements[0],
|
|
|
- this.state.zoom,
|
|
|
- sceneX,
|
|
|
- sceneY,
|
|
|
- );
|
|
|
- if (pointUnderCursorIndex >= 0) {
|
|
|
- LinearElementEditor.toggleSegmentSplitAtIndex(
|
|
|
+ if (selectedElements[0].roundness) {
|
|
|
+ const pointUnderCursorIndex = LinearElementEditor.getPointIndexUnderCursor(
|
|
|
selectedElements[0],
|
|
|
- pointUnderCursorIndex,
|
|
|
+ this.state.zoom,
|
|
|
+ sceneX,
|
|
|
+ sceneY,
|
|
|
);
|
|
|
- return;
|
|
|
+ if (pointUnderCursorIndex >= 0) {
|
|
|
+ LinearElementEditor.toggleSegmentSplitAtIndex(
|
|
|
+ selectedElements[0],
|
|
|
+ pointUnderCursorIndex,
|
|
|
+ );
|
|
|
+ return;
|
|
|
+ }
|
|
|
}
|
|
|
if (
|
|
|
event[KEYS.CTRL_OR_CMD] &&
|