TimingData: add allowEmpty parameter to TidyUpData. always false for now...

This commit is contained in:
Devin J. Pohly
2013-01-23 14:38:57 -05:00
parent 3d6f1c5227
commit 0ae7b0da85
5 changed files with 13 additions and 6 deletions
+6 -1
View File
@@ -863,8 +863,13 @@ float TimingData::GetDisplayedSpeedPercent( float fSongBeat, float fMusicSeconds
}
void TimingData::TidyUpData()
void TimingData::TidyUpData(bool allowEmpty)
{
// Empty TimingData is used to implement steps with no timing of their
// own. Don't override this.
if( allowEmpty && empty() )
return;
// If there are no BPM segments, provide a default.
vector<TimingSegment *> *segs = m_avpTimingSegments;
if( segs[SEGMENT_BPM].empty() )