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'
55
66export function sanitizeOutlinerElementName ( name : string , elementUUID : string ) : string {
77 name = toSafeFuntionName ( name )
8- const otherNodes : OutlinerElement [ ] = [
9- ...VanillaBlockDisplay . all . filter ( v => v . uuid !== elementUUID ) ,
8+ let otherNodes : OutlinerElement [ ] = [
9+ ...VanillaBlockDisplay . all ,
1010 ...Group . all ,
1111 ...TextDisplay . all ,
1212 ...VanillaItemDisplay . all ,
13+ ...Locator . all ,
1314 ]
1415 if ( OutlinerElement . types . camera ) {
1516 otherNodes . push ( ...OutlinerElement . types . camera . all )
1617 }
18+ otherNodes = otherNodes . filter ( v => v . uuid !== elementUUID )
19+
1720 const otherNames = new Set ( otherNodes . map ( v => v . name ) )
1821
1922 if ( ! otherNames . has ( name ) ) {
You can’t perform that action at this time.
0 commit comments