fix behavior of region gain envelope when performing a separate action (2-point split)
This was a simple typo, using pos1 rather than pos2. Also removed now-irrelevant comment line
This commit is contained in:
parent
6ff57ca37b
commit
3f812ca1a3
|
@ -1020,10 +1020,9 @@ Playlist::partition_internal (timepos_t const & start, timepos_t const & end, bo
|
|||
plist.add (Properties::left_of_split, true);
|
||||
plist.add (Properties::right_of_split, true);
|
||||
|
||||
/* see note in :_split_region()
|
||||
* for MusicSample is needed to offset region-gain
|
||||
/* see note in ::_split_region()
|
||||
*/
|
||||
region = RegionFactory::create (current, pos1.distance (pos1), plist, true, &thawlist);
|
||||
region = RegionFactory::create (current, pos1.distance (pos2), plist, true, &thawlist);
|
||||
add_region_internal (region, start, thawlist);
|
||||
new_regions.push_back (region);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue