From dd537d4aa42964a89e9cfd19e9baf34fd86c77b7 Mon Sep 17 00:00:00 2001 From: Maiko Date: Sat, 11 May 2024 16:30:37 +0900 Subject: [PATCH] Fixed error in voice color remapping --- OpenUtau.Core/Ustx/UTrack.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenUtau.Core/Ustx/UTrack.cs b/OpenUtau.Core/Ustx/UTrack.cs index d3b02b0a4..c12a3db7e 100644 --- a/OpenUtau.Core/Ustx/UTrack.cs +++ b/OpenUtau.Core/Ustx/UTrack.cs @@ -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) { @@ -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) {