Fix #8559 Joining is broken for pitched clips when rendering is not required

(cherry picked from commit 22417b60bedbf48574998eef04f9bfa9a531bb12)
This commit is contained in:
Dmitry Makarenko
2025-03-30 10:46:30 +03:00
committed by Avery King
parent 00af5e2ca8
commit ecbb09689a

View File

@@ -1116,9 +1116,11 @@ bool WaveClip::Paste(double t0, const WaveClip& o)
if (GetSequenceSamplesCount() == 0)
{
// Empty clip: we're flexible and adopt the other's stretching.
mRawAudioTempo = other.mRawAudioTempo;
// Empty clip: we're flexible and adopt the other's pitch and stretch.
mPitchAndSpeedPreset = other.mPitchAndSpeedPreset;
mCentShift = other.mCentShift;
mClipStretchRatio = other.mClipStretchRatio;
mRawAudioTempo = other.mRawAudioTempo;
mProjectTempo = other.mProjectTempo;
}
else if (!HasEqualPitchAndSpeed(other))