From eda20083167375dac2f2a129b9e2d2bdc0210d67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=92=E7=8C=AB=E5=A4=A7=E7=A6=8F?= <93469977+rokujyushi@users.noreply.github.com> Date: Tue, 12 Nov 2024 02:25:13 +0900 Subject: [PATCH] Incorrect method of determining curves has been corrected. --- OpenUtau/Views/NoteEditStates.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenUtau/Views/NoteEditStates.cs b/OpenUtau/Views/NoteEditStates.cs index 27e740444..c370525ea 100644 --- a/OpenUtau/Views/NoteEditStates.cs +++ b/OpenUtau/Views/NoteEditStates.cs @@ -649,12 +649,12 @@ public override void Update(IPointer pointer, Point point, PointerEventArgs args } bool shiftHeld = args.KeyModifiers == KeyModifiers.Shift; bool ctrlShiftHeld = args.KeyModifiers == (KeyModifiers.Control | KeyModifiers.Shift); - bool typeOptions = descriptor.type == UExpressionType.Options; - if (typeOptions) { + if (descriptor.type != UExpressionType.Curve) { UpdatePhonemeExp(pointer, point, shiftHeld); } else { UpdateCurveExp(pointer, point, ctrlShiftHeld, shiftHeld); } + bool typeOptions = descriptor.type == UExpressionType.Options; double viewMax = descriptor.max + (typeOptions ? 1 : 0); double displayValue; if (shiftHeld) {