Update selection display and duplication logic for multiple path points
This commit is contained in:
@@ -1604,6 +1604,8 @@ function describeSelection(
|
|||||||
pointIndex === -1 ? "Path Point" : `Point ${pointIndex + 1}`;
|
pointIndex === -1 ? "Path Point" : `Point ${pointIndex + 1}`;
|
||||||
return `${pointLabel} selected (${getPathLabelById(selection.pathId, paths)})`;
|
return `${pointLabel} selected (${getPathLabelById(selection.pathId, paths)})`;
|
||||||
}
|
}
|
||||||
|
case "pathPoints":
|
||||||
|
return `${selection.pointIds.length} path points selected (${getPathLabelById(selection.pathId, paths)})`;
|
||||||
case "entities":
|
case "entities":
|
||||||
return `${selection.ids.length} entit${selection.ids.length === 1 ? "y" : "ies"} selected (${getEntityDisplayLabelById(resolveSelectionActiveId(selection, activeSelectionId) ?? selection.ids[0], entities, assets)})`;
|
return `${selection.ids.length} entit${selection.ids.length === 1 ? "y" : "ies"} selected (${getEntityDisplayLabelById(resolveSelectionActiveId(selection, activeSelectionId) ?? selection.ids[0], entities, assets)})`;
|
||||||
case "modelInstances":
|
case "modelInstances":
|
||||||
@@ -1990,6 +1992,7 @@ function selectionCanBeDuplicated(selection: EditorSelection): boolean {
|
|||||||
case "brushVertex":
|
case "brushVertex":
|
||||||
return true;
|
return true;
|
||||||
case "pathPoint":
|
case "pathPoint":
|
||||||
|
case "pathPoints":
|
||||||
case "none":
|
case "none":
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -8193,6 +8196,11 @@ export function App({
|
|||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case "pathPoints":
|
||||||
|
setStatusMessage(
|
||||||
|
`Selected ${selection.pointIds.length} path points on ${getPathLabelById(selection.pathId, pathList)} from the ${source}${suffix}.`
|
||||||
|
);
|
||||||
|
break;
|
||||||
case "entities":
|
case "entities":
|
||||||
setStatusMessage(
|
setStatusMessage(
|
||||||
selection.ids.length === 1
|
selection.ids.length === 1
|
||||||
|
|||||||
Reference in New Issue
Block a user