mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-04 04:39:33 +01:00
re-reference regions during uncombine - #5979
This commit is contained in:
parent
fea0a3cbb1
commit
d0aa50de7a
1 changed files with 4 additions and 0 deletions
|
|
@ -3038,6 +3038,7 @@ Playlist::uncombine (boost::shared_ptr<Region> target)
|
|||
}
|
||||
|
||||
boost::shared_ptr<Region> original (ca->second);
|
||||
cassocs.erase(ca);
|
||||
bool modified_region;
|
||||
|
||||
if (i == rl.begin()) {
|
||||
|
|
@ -3135,6 +3136,9 @@ Playlist::uncombine (boost::shared_ptr<Region> target)
|
|||
for (vector<boost::shared_ptr<Region> >::iterator i = originals.begin(); i != originals.end(); ++i) {
|
||||
add_region ((*i), (*i)->position());
|
||||
set_layer((*i), (*i)->layer());
|
||||
if (!RegionFactory::region_by_id((*i)->id())) {
|
||||
RegionFactory::map_add(*i);
|
||||
}
|
||||
}
|
||||
|
||||
in_partition = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue