Copy region properties (2/2) - see prev commit

This commit is contained in:
Robin Gareus 2022-09-19 21:14:10 +02:00
parent 8b0ab38675
commit 97f0fac7d5
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
2 changed files with 2 additions and 6 deletions

View file

@ -7588,7 +7588,7 @@ Editor::split_region_at_points (boost::shared_ptr<Region> r, AnalysisFeatureList
/* do NOT announce new regions 1 by one, just wait till they are all done */
PropertyList plist;
PropertyList plist (r->properties ());
plist.add (ARDOUR::Properties::start, file_start);
plist.add (ARDOUR::Properties::length, len);
@ -7617,7 +7617,7 @@ Editor::split_region_at_points (boost::shared_ptr<Region> r, AnalysisFeatureList
RegionFactory::region_name (new_name, r->name());
/* Add the final region */
PropertyList plist;
PropertyList plist (r->properties ());
plist.add (ARDOUR::Properties::start, r->start() + pos);
plist.add (ARDOUR::Properties::length, (r->position() + pos).distance (r->end()));

View file

@ -1707,11 +1707,7 @@ MidiTimeAxisView::add_region (timepos_t const & f, timecnt_t const & length, boo
{
PropertyList plist;
plist.add (ARDOUR::Properties::start, start);
plist.add (ARDOUR::Properties::length, length);
plist.add (ARDOUR::Properties::name, region->name());
region = RegionFactory::create (region, plist, false);
}