Skip to content

Commit

Permalink
fix applying expression breaks part length
Browse files Browse the repository at this point in the history
  • Loading branch information
stakira committed Sep 13, 2023
1 parent bf1a8b0 commit 842b840
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenUtau.Core/Ustx/UPart.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public override void AfterLoad(UProject project, UTrack track) {
foreach (var note in notes) {
note.AfterLoad(project, track, this);
}
Duration = GetMinDurTick(project);
Duration = Math.Max(Duration, GetMinDurTick(project));
foreach (var curve in curves) {
if (project.expressions.TryGetValue(curve.abbr, out var descriptor)) {
curve.descriptor = descriptor;
Expand Down

0 comments on commit 842b840

Please sign in to comment.