Changed #2120 Exported assets no longer take names from assigned classes if there is more than 1 assigned class

This commit is contained in:
Jindra Petřík
2023-12-30 18:06:08 +01:00
parent 4125e94ca3
commit e2b8f54981
2 changed files with 20 additions and 2 deletions
@@ -62,11 +62,25 @@ public abstract class CharacterTag extends Tag implements CharacterIdTag {
@Override
public String getExportFileName() {
String result = super.getExportFileName();
return result + "_" + getCharacterId() + (exportName != null ? "_" + exportName : "") + (!classNames.isEmpty() ? "_" + String.join("___", classNames) : "");
result += "_" + getCharacterId();
if (exportName != null) {
result += "_" + exportName;
}
if (classNames.size() == 1) {
result += "_" + classNames.iterator().next();
}
return result;
}
public String getCharacterExportFileName() {
return getCharacterId() + (exportName != null ? "_" + exportName : "") + (!classNames.isEmpty() ? "_" + String.join("___", classNames) : "");
String result = "" + getCharacterId();
if (exportName != null) {
result += "_" + exportName;
}
if (classNames.size() == 1) {
result += "_" + classNames.iterator().next();
}
return result;
}
protected String exportName;