|
@@ -757,7 +757,8 @@ export class EditScence extends SGraphScene {
|
|
|
if (arr && arr.length && arr[arr.length - 1].name && flag) {
|
|
|
let name = item.name;
|
|
|
let nameArr = name.split("\n");
|
|
|
- if (nameArr[nameArr.length - 1] != arr[arr.length - 1].name)
|
|
|
+
|
|
|
+ if (nameArr.indexOf(arr[arr.length - 1].name) == -1)
|
|
|
if (name) {
|
|
|
item.name = name + `\n${arr[arr.length - 1].name}`;
|
|
|
item.text = name + `\n${arr[arr.length - 1].name}`;
|