File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -5,15 +5,18 @@ import { VanillaItemDisplay } from './vanillaItemDisplay'
5
5
6
6
export function sanitizeOutlinerElementName ( name : string , elementUUID : string ) : string {
7
7
name = toSafeFuntionName ( name )
8
- const otherNodes : OutlinerElement [ ] = [
9
- ...VanillaBlockDisplay . all . filter ( v => v . uuid !== elementUUID ) ,
8
+ let otherNodes : OutlinerElement [ ] = [
9
+ ...VanillaBlockDisplay . all ,
10
10
...Group . all ,
11
11
...TextDisplay . all ,
12
12
...VanillaItemDisplay . all ,
13
+ ...Locator . all ,
13
14
]
14
15
if ( OutlinerElement . types . camera ) {
15
16
otherNodes . push ( ...OutlinerElement . types . camera . all )
16
17
}
18
+ otherNodes = otherNodes . filter ( v => v . uuid !== elementUUID )
19
+
17
20
const otherNames = new Set ( otherNodes . map ( v => v . name ) )
18
21
19
22
if ( ! otherNames . has ( name ) ) {
You can’t perform that action at this time.
0 commit comments