Allow the region gain automation tool to create standard automation events. Fixes #3192.
git-svn-id: svn://localhost/ardour2/branches/3.0@7173 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
d47161b9ee
commit
40d280d7b2
@ -1295,23 +1295,20 @@ Editor::button_release_handler (ArdourCanvas::Item* item, GdkEvent* event, ItemT
|
||||
break;
|
||||
|
||||
case MouseGain:
|
||||
// Gain only makes sense for audio regions
|
||||
|
||||
if (!dynamic_cast<AudioRegionView*>(clicked_regionview)) {
|
||||
break;
|
||||
}
|
||||
|
||||
switch (item_type) {
|
||||
case RegionItem:
|
||||
{
|
||||
/* check that we didn't drag before releasing, since
|
||||
its really annoying to create new control
|
||||
points when doing this.
|
||||
*/
|
||||
if (were_dragging) {
|
||||
dynamic_cast<AudioRegionView*>(clicked_regionview)->add_gain_point_event (item, event);
|
||||
AudioRegionView* arv = dynamic_cast<AudioRegionView*> (clicked_regionview);
|
||||
if (were_dragging && arv) {
|
||||
arv->add_gain_point_event (item, event);
|
||||
}
|
||||
return true;
|
||||
break;
|
||||
}
|
||||
|
||||
case AutomationTrackItem:
|
||||
dynamic_cast<AutomationTimeAxisView*>(clicked_axisview)->
|
||||
|
Loading…
Reference in New Issue
Block a user