Commit 51c15c19 authored by Ludovic Fauvet's avatar Ludovic Fauvet
Browse files

Timeline: sync position of both tracks (audio and video) at once

parent 9d0937b9
...@@ -696,6 +696,20 @@ void TracksView::mouseReleaseEvent( QMouseEvent* event ) ...@@ -696,6 +696,20 @@ void TracksView::mouseReleaseEvent( QMouseEvent* event )
m_actionItem->startPos(), m_actionItem->startPos(),
m_actionItem->mediaType() ) ); m_actionItem->mediaType() ) );
// Update the linked item too
if ( m_actionItem->groupItem() )
{
m_actionItem->groupItem()->oldTrackNumber = m_actionItem->groupItem()->trackNumber();
m_actionItem->groupItem()->oldPosition = m_actionItem->groupItem()->startPos();
Commands::trigger( new Commands::MainWorkflow::MoveClip( m_mainWorkflow,
m_actionItem->groupItem()->clip()->getUuid(),
m_actionItem->groupItem()->oldTrackNumber,
m_actionItem->groupItem()->trackNumber(),
m_actionItem->groupItem()->startPos(),
m_actionItem->groupItem()->mediaType() ) );
}
m_actionItem->oldTrackNumber = m_actionItem->trackNumber(); m_actionItem->oldTrackNumber = m_actionItem->trackNumber();
m_actionItem->oldPosition = m_actionItem->startPos(); m_actionItem->oldPosition = m_actionItem->startPos();
m_actionRelativeX = -1; m_actionRelativeX = -1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment