Bug fixes so that region split does not clobber region gain envelopes.
git-svn-id: svn://localhost/ardour2/branches/3.0@4340 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
@@ -155,7 +155,6 @@ AudioRegion::AudioRegion (boost::shared_ptr<const AudioRegion> other, nframes_t
|
||||
}
|
||||
|
||||
/* return to default fades if the existing ones are too long */
|
||||
init ();
|
||||
|
||||
if (_flags & LeftOfSplit) {
|
||||
if (_fade_in->back()->when >= _length) {
|
||||
@@ -180,6 +179,8 @@ AudioRegion::AudioRegion (boost::shared_ptr<const AudioRegion> other, nframes_t
|
||||
_scale_amplitude = other->_scale_amplitude;
|
||||
|
||||
assert(_type == DataType::AUDIO);
|
||||
|
||||
listen_to_my_curves ();
|
||||
listen_to_my_sources ();
|
||||
}
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@ AutomationList::AutomationList (const AutomationList& other)
|
||||
}
|
||||
|
||||
AutomationList::AutomationList (const AutomationList& other, double start, double end)
|
||||
: ControlList(other)
|
||||
: ControlList(other, start, end)
|
||||
{
|
||||
_style = other._style;
|
||||
_state = other._state;
|
||||
|
||||
Reference in New Issue
Block a user