Skip to content

Commit

Permalink
Fix advanced UI not showing chara object name if name translation fai…
Browse files Browse the repository at this point in the history
…ls. Fixes duplicate characters being unselectable in dropdown
  • Loading branch information
ManlyMarco committed Aug 19, 2023
1 parent 7295f0d commit 7c643f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Shared/GUI/KKABMX_AdvancedGUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ private static string GetCharacterName(BoneController controller)
var objName = controller.name;
var charaName = controller.ChaControl.fileParam.fullname;
TranslationHelper.TryTranslate(charaName, out var charaNameTl);
return string.IsNullOrEmpty(charaNameTl) ? charaName.Trim() : $"{objName} ({charaNameTl.Trim()})";
return $"{objName} ({(string.IsNullOrEmpty(charaNameTl) ? charaName.Trim() : charaNameTl.Trim())})";
}

/// <summary>
Expand Down Expand Up @@ -879,7 +879,7 @@ void PasteIntoModifier(BoneModifier targetModifier)
}
}
PasteIntoModifier(mod);
if(otherMod != null) PasteIntoModifier(otherMod);
if (otherMod != null) PasteIntoModifier(otherMod);
KKABMX_Core.Logger.LogMessage("Imported modifiers from clipboard!");
}
}
Expand Down

0 comments on commit 7c643f9

Please sign in to comment.