Partial fix for #3092; make time FX still work if internal editing is enabled and we drag an audio region.
git-svn-id: svn://localhost/ardour2/branches/3.0@7016 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
9c51553588
commit
09f856c1a1
@ -890,9 +890,11 @@ Editor::button_press_handler_1 (ArdourCanvas::Item* item, GdkEvent* event, ItemT
|
||||
|
||||
case MouseTimeFX:
|
||||
if (internal_editing() && item_type == NoteItem) {
|
||||
/* drag notes if we're in internal edit mode */
|
||||
_drags->set (new NoteResizeDrag (this, item), event);
|
||||
return true;
|
||||
} else if (!internal_editing() && item_type == RegionItem) {
|
||||
} else if (!internal_editing() || dynamic_cast<AudioRegionView*> (clicked_regionview)) {
|
||||
/* do time-FX if we're not in internal edit mode, or we are but we clicked on an audio region */
|
||||
_drags->set (new TimeFXDrag (this, item, clicked_regionview, selection->regions.by_layer()), event);
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user