Commit 818e2054 authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen

Solved split problem

parent 14465521
......@@ -756,22 +756,11 @@ GraphicsTrack* TracksView::getTrack( MainWorkflow::TrackType type, unsigned int
void TracksView::split( GraphicsMovieItem* item, qint64 frame )
{
// Q_ASSERT( item );
// Clip* newclip = item->clip()->split( frame );
// Q_ASSERT( newclip );
//
// addMediaItem( newclip, item->trackNumber(), item->startPos() + frame );
// Commands::trigger( new Commands::MainWorkflow::AddClip( m_renderer,
// newclip,
// item->trackNumber(),
// item->startPos() + frame,
// MainWorkflow::VideoTrack ) );
//frame is the number of frame from the beginning of the clip
//item->pos().x() is the position of the splitted clip (in frame)
//item->startPos() is the position of the splitted clip (in frame)
//therefore, the position of the newly created clip is
//the splitted clip pos + the splitting point (ie startPos() + frame)
// m_renderer->split( item->clip(), item->trackNumber(), item->startPos() + frame, frame, MainWorkflow::VideoTrack );
Commands::trigger( new Commands::MainWorkflow::SplitClip( m_renderer, item->clip(), item->trackNumber(),
item->startPos() + frame, frame, MainWorkflow::VideoTrack ) );
item->startPos() + frame, frame + item->clip()->getBegin(),
MainWorkflow::VideoTrack ) );
}
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