mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
lincoln's patch that makes us pay attention to region copies w.r.t the region list, PLUS make region list insert drags work again by not insisting that the list of regionviews be non-empty as the drag is constructed PLUS the start of tracking mouse cursor position in MIDI notes PLUS a bit of leftover debugging info
git-svn-id: svn://localhost/ardour2/branches/3.0@7817 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
ff356beda5
commit
2c80ff4129
7 changed files with 63 additions and 14 deletions
|
|
@ -2218,7 +2218,7 @@ Editor::insert_region_list_drag (boost::shared_ptr<Region> region, int x, int y)
|
|||
|
||||
begin_reversible_command (_("insert dragged region"));
|
||||
playlist->clear_changes ();
|
||||
playlist->add_region (RegionFactory::create (region), where, 1.0);
|
||||
playlist->add_region (RegionFactory::create (region, true), where, 1.0);
|
||||
_session->add_command(new StatefulDiffCommand (playlist));
|
||||
commit_reversible_command ();
|
||||
}
|
||||
|
|
@ -2297,7 +2297,7 @@ Editor::insert_region_list_selection (float times)
|
|||
|
||||
begin_reversible_command (_("insert region"));
|
||||
playlist->clear_changes ();
|
||||
playlist->add_region ((RegionFactory::create (region)), get_preferred_edit_position(), times);
|
||||
playlist->add_region ((RegionFactory::create (region, true)), get_preferred_edit_position(), times);
|
||||
_session->add_command(new StatefulDiffCommand (playlist));
|
||||
commit_reversible_command ();
|
||||
}
|
||||
|
|
@ -3106,7 +3106,7 @@ Editor::region_fill_track ()
|
|||
}
|
||||
|
||||
pl->clear_changes ();
|
||||
pl->add_region (RegionFactory::create (region), region->last_frame(), times);
|
||||
pl->add_region (RegionFactory::create (region, true), region->last_frame(), times);
|
||||
_session->add_command (new StatefulDiffCommand (pl));
|
||||
}
|
||||
|
||||
|
|
@ -3150,7 +3150,7 @@ Editor::region_fill_selection ()
|
|||
}
|
||||
|
||||
playlist->clear_changes ();
|
||||
playlist->add_region (RegionFactory::create (region), start, times);
|
||||
playlist->add_region (RegionFactory::create (region, true), start, times);
|
||||
_session->add_command (new StatefulDiffCommand (playlist));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue