mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
defer regionmap creation in clip editors to region
This commit is contained in:
parent
ae6acb7f42
commit
673ce0f66f
1 changed files with 2 additions and 4 deletions
|
|
@ -1158,8 +1158,6 @@ CueEditor::set_track (std::shared_ptr<Track> t)
|
||||||
void
|
void
|
||||||
CueEditor::set_region (std::shared_ptr<Region> r)
|
CueEditor::set_region (std::shared_ptr<Region> r)
|
||||||
{
|
{
|
||||||
EC_LOCAL_TEMPO_SCOPE;
|
|
||||||
|
|
||||||
if (r == _region) {
|
if (r == _region) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -1168,8 +1166,8 @@ CueEditor::set_region (std::shared_ptr<Region> r)
|
||||||
|
|
||||||
_region = r;
|
_region = r;
|
||||||
|
|
||||||
if (_region->tempo() && _region->meter()) {
|
std::shared_ptr<TempoMap> tmap = _region->tempo_map();
|
||||||
std::shared_ptr<TempoMap> tmap (new TempoMap (_region->tempo().value(), _region->meter().value()));
|
if (tmap) {
|
||||||
start_local_tempo_map (tmap);
|
start_local_tempo_map (tmap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue