mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
Copy region properties (2/2) - see prev commit
This commit is contained in:
parent
8b0ab38675
commit
97f0fac7d5
2 changed files with 2 additions and 6 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue