Skip to content

Commit

Permalink
Merge pull request #1135 from maiko3tattun/0511_FixVoiceColorRemapping
Browse files Browse the repository at this point in the history
Fixed error in voice color remapping
  • Loading branch information
stakira authored Jun 9, 2024
2 parents 6d706b3 + dd537d4 commit 2603344
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion OpenUtau.Core/Ustx/UTrack.cs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public bool ValidateVoiceColor(out string[] oldColors, out string[] newColors) {
oldColors = VoiceColorNames.ToArray();
newColors = new string[0];

if (Singer != null && Singer.Found && VoiceColorExp != null) {
if (Singer != null && Singer.Found && VoiceColorExp != null && VoiceColorExp.options.Length > 0) {
newColors = VoiceColorExp.options.ToArray();

if (VoiceColorNames.Length > 1) {
Expand All @@ -223,6 +223,7 @@ public bool ValidateVoiceColor(out string[] oldColors, out string[] newColors) {
public void BeforeSave() {
singer = Singer?.Id;
phonemizer = Phonemizer.GetType().FullName;
VoiceColorNames = VoiceColorExp.options.ToArray();
}

public void AfterLoad(UProject project) {
Expand Down

0 comments on commit 2603344

Please sign in to comment.