We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6c0713 commit e3f1d2aCopy full SHA for e3f1d2a
src/outliner/util.ts
@@ -5,15 +5,18 @@ import { VanillaItemDisplay } from './vanillaItemDisplay'
5
6
export function sanitizeOutlinerElementName(name: string, elementUUID: string): string {
7
name = toSafeFuntionName(name)
8
- const otherNodes: OutlinerElement[] = [
9
- ...VanillaBlockDisplay.all.filter(v => v.uuid !== elementUUID),
+ let otherNodes: OutlinerElement[] = [
+ ...VanillaBlockDisplay.all,
10
...Group.all,
11
...TextDisplay.all,
12
...VanillaItemDisplay.all,
13
+ ...Locator.all,
14
]
15
if (OutlinerElement.types.camera) {
16
otherNodes.push(...OutlinerElement.types.camera.all)
17
}
18
+ otherNodes = otherNodes.filter(v => v.uuid !== elementUUID)
19
+
20
const otherNames = new Set(otherNodes.map(v => v.name))
21
22
if (!otherNames.has(name)) {
0 commit comments