Fix duplicate whole-file regions when embedding sources
playlist->add_region() derives a region in case a whole-file region is added to the playlist.
This commit is contained in:
parent
39ac0c5e19
commit
5dd35ff86a
@ -1058,7 +1058,7 @@ Editor::finish_bringing_in_material (std::shared_ptr<Region> region,
|
||||
}
|
||||
|
||||
std::shared_ptr<Playlist> playlist = existing_track->playlist();
|
||||
std::shared_ptr<Region> copy (RegionFactory::create (region, region->properties()));
|
||||
std::shared_ptr<Region> copy (RegionFactory::create (region, region->derive_properties ()));
|
||||
playlist->clear_changes ();
|
||||
playlist->clear_owned_changes ();
|
||||
playlist->add_region (copy, pos);
|
||||
|
Loading…
Reference in New Issue
Block a user