diff options
author | Ben Loftis <ben@harrisonconsoles.com> | 2018-06-08 16:12:35 -0500 |
---|---|---|
committer | Ben Loftis <ben@harrisonconsoles.com> | 2018-06-08 16:12:35 -0500 |
commit | 7fbbfc072956884427d881e3f6e8d08544fad12b (patch) | |
tree | 8b203662dc8c3fcc563bbbdc7c2bbe2a73c15c2a /gtk2_ardour/editor_ops.cc | |
parent | 1c3dbc7d9e0aea18ec1f70281838f4c0d3f75088 (diff) |
Allow snapping to the start of the video timeline. (should work, but needs testing on a machine with harvid).
Diffstat (limited to 'gtk2_ardour/editor_ops.cc')
-rw-r--r-- | gtk2_ardour/editor_ops.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index d730bb772a..f4647553f9 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -68,6 +68,7 @@ #include "canvas/canvas.h" #include "actions.h" +#include "ardour_ui.h" #include "audio_region_view.h" #include "audio_streamview.h" #include "audio_time_axis.h" @@ -748,6 +749,11 @@ Editor::build_region_boundary_cache () } } + //allow regions to snap to the video start (if any) as if it were a "region" + if (ARDOUR_UI::instance()->video_timeline) { + region_boundary_cache.push_back (ARDOUR_UI::instance()->video_timeline->get_video_start_offset()); + } + std::pair<samplepos_t, samplepos_t> ext = session_gui_extents (false); samplepos_t session_end = ext.second; |