Exclude 'terrains' from duplication and add specific handling

This commit is contained in:
2026-04-18 19:55:43 +02:00
parent cd5d9b2ffe
commit ce7ef76a6a

View File

@@ -1690,11 +1690,12 @@ function isTextEntryTarget(target: EventTarget | null): boolean {
function selectionCanBeDuplicated(selection: EditorSelection): boolean {
switch (selection.kind) {
case "brushes":
case "terrains":
case "paths":
case "entities":
case "modelInstances":
return selection.ids.length > 0;
case "terrains":
return false;
case "brushFace":
case "brushEdge":
case "brushVertex":