Ensure we have a region _beat for legacy sessions, set _pulse unconditionally when loading from xml.
This commit is contained in:
parent
d8ef412089
commit
b1df56d531
@ -1311,12 +1311,14 @@ Region::_set_state (const XMLNode& node, int /*version*/, PropertyChange& what_c
|
|||||||
&bbt_time.beats,
|
&bbt_time.beats,
|
||||||
&bbt_time.ticks) != 3) {
|
&bbt_time.ticks) != 3) {
|
||||||
_position_lock_style = AudioTime;
|
_position_lock_style = AudioTime;
|
||||||
|
_beat = _session.tempo_map().beat_at_frame (_position);
|
||||||
} else {
|
} else {
|
||||||
_beat = _session.tempo_map().beat_at_bbt (bbt_time);
|
_beat = _session.tempo_map().beat_at_bbt (bbt_time);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
_pulse = _session.tempo_map().pulse_at_beat (_beat);
|
_pulse = _session.tempo_map().pulse_at_beat (_beat);
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* fix problems with old sessions corrupted by impossible
|
/* fix problems with old sessions corrupted by impossible
|
||||||
values for _stretch or _shift
|
values for _stretch or _shift
|
||||||
|
Loading…
Reference in New Issue
Block a user