Copy region properties (2/2) - see prev commit
This commit is contained in:
@@ -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()));
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user