复制行为树区分多次复制同一行为树
This commit is contained in:
@@ -248,8 +248,8 @@ public class BehaviortreeProcessor {
|
|||||||
Integer num = behaviortreeService.getCountName(newName);
|
Integer num = behaviortreeService.getCountName(newName);
|
||||||
if(num > 0){
|
if(num > 0){
|
||||||
Integer count = num + 1;
|
Integer count = num + 1;
|
||||||
newName += count;
|
behaviortree.setName(newName + count);
|
||||||
newEnglishName += count;
|
behaviortree.setEnglishName(newEnglishName + count);
|
||||||
}
|
}
|
||||||
return this.create(behaviortree);
|
return this.create(behaviortree);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user