Commit 494f1396 authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen

Timeline: Don't save begin and end are they are useless.

parent 9461620f
......@@ -316,13 +316,9 @@ MainWorkflow::loadProject( const QDomElement &root )
{
//Iterate over clip fields:
QString uuid;
QString begin;
QString end;
QString startFrame;
uuid = clip.attribute( "uuid" );
begin = clip.attribute( "begin" );
end = clip.attribute( "end" );
startFrame = clip.attribute( "startFrame" );
if ( uuid.isEmpty() == true || startFrame.isEmpty() == true )
......@@ -334,8 +330,7 @@ MainWorkflow::loadProject( const QDomElement &root )
Clip* c = Library::getInstance()->clip( uuid );
if ( c != NULL )
{
addClip( new Clip( c, begin.toLongLong(), end.toLongLong() ),
trackId, startFrame.toLongLong(), type );
addClip( new Clip( c ), trackId, startFrame.toLongLong(), type );
}
clip = clip.nextSibling().toElement();
}
......
......@@ -400,8 +400,6 @@ void TrackWorkflow::save( QXmlStreamWriter& project ) const
project.writeStartElement( "clip" );
project.writeAttribute( "uuid", it.value()->getClip()->getParent()->fullId() );
project.writeAttribute( "startFrame", QString::number( it.key() ) );
project.writeAttribute( "begin", QString::number( it.value()->getClip()->begin() ) );
project.writeAttribute( "end", QString::number( it.value()->getClip()->end() ) );
project.writeEndElement();
}
}
......
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