defer regionmap creation in clip editors to region

This commit is contained in:
Paul Davis 2025-08-10 07:55:34 -06:00
parent ae6acb7f42
commit 673ce0f66f

View file

@ -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);
} }