mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
Drags are such a drag.
This commit is contained in:
parent
2006701f73
commit
f04bacdfac
1 changed files with 9 additions and 2 deletions
|
|
@ -1056,14 +1056,21 @@ AutomationLine::reset ()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* TODO: abort any drags in progress, e.g. draging points while writing automation
|
||||||
|
* (the control-point model, used by AutomationLine::drag_motion, will be invalid).
|
||||||
|
*
|
||||||
|
* Note: reset() may also be called from an aborted drag (LineDrag::aborted)
|
||||||
|
* maybe abort in list_changed(), interpolation_changed() and ... ?
|
||||||
|
* XXX
|
||||||
|
*/
|
||||||
|
|
||||||
alist->apply_to_points (*this, &AutomationLine::reset_callback);
|
alist->apply_to_points (*this, &AutomationLine::reset_callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
AutomationLine::queue_reset ()
|
AutomationLine::queue_reset ()
|
||||||
{
|
{
|
||||||
/* this must be called from the GUI thread
|
/* this must be called from the GUI thread */
|
||||||
*/
|
|
||||||
|
|
||||||
if (trackview.editor().session()->transport_rolling() && alist->automation_write()) {
|
if (trackview.editor().session()->transport_rolling() && alist->automation_write()) {
|
||||||
/* automation write pass ... defer to a timeout */
|
/* automation write pass ... defer to a timeout */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue