mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 13:45:43 +01:00
automation-range-drag: if lane is empty, use current value for guard points
* in the case where there are no existing automation points, then initiating an automation range drag (select range, switch to Draw) should initialize the line at the current knob position
This commit is contained in:
parent
cd332a2af0
commit
e0f9f11dfc
3 changed files with 19 additions and 6 deletions
|
|
@ -1214,8 +1214,10 @@ Editor::button_press_handler_1 (ArdourCanvas::Item* item, GdkEvent* event, ItemT
|
|||
/* handle automation lanes first */
|
||||
AutomationTimeAxisView* atv = dynamic_cast<AutomationTimeAxisView*> (tvp.first);
|
||||
if (atv) {
|
||||
/* smart "join" mode: drag automation */
|
||||
_drags->set (new AutomationRangeDrag (this, atv, selection->time), event, _cursors->up_down);
|
||||
/* if there's no line yet, AutomationRangeDrag will need to be told what the initial value of this control is */
|
||||
float init_value = atv->control()->get_value();
|
||||
|
||||
_drags->set (new AutomationRangeDrag (this, atv, init_value, selection->time), event, _cursors->up_down);
|
||||
return true;
|
||||
}
|
||||
if (dynamic_cast<AutomationRegionView*>(clicked_regionview)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue