Eliminate double reversible commit from time stretch, and make the stretch operation lengthen / shorten the region as per operation.
git-svn-id: svn://localhost/ardour2/branches/3.0@6318 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
52b4b464f9
commit
b9876aa1d0
@ -2837,8 +2837,8 @@ TimeFXDrag::finished (GdkEvent* /*event*/, bool movement_occurred)
|
||||
RegionSelection rs;
|
||||
rs.add (_primary);
|
||||
|
||||
if (_editor->time_stretch (rs, percentage) == 0) {
|
||||
_editor->session->commit_reversible_command ();
|
||||
if (!_editor->time_stretch (rs, percentage) == 0) {
|
||||
error << _("An error occurred while executing time stretch operation") << endmsg;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -354,6 +354,7 @@ RBEffect::run (boost::shared_ptr<Region> r)
|
||||
stretch,
|
||||
shift);
|
||||
(*x)->set_master_sources (region->master_sources());
|
||||
(*x)->set_length( (*x)->length() * stretch, this);
|
||||
}
|
||||
|
||||
out:
|
||||
|
Loading…
Reference in New Issue
Block a user