Commit 496812a2 authored by luyikei's avatar luyikei Committed by Hugo Beauzée-Luyssen

TrackWorkflow: use MainWorkflow::createClip when loadFromVariant()

Signed-off-by: 's avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent 4eff3c1b
......@@ -496,14 +496,13 @@ TrackWorkflow::loadFromVariant( const QVariant &variant )
return ;
}
Clip* c = Core::instance()->library()->clip( uuid );
if ( c != nullptr )
{
Clip *clip = new Clip( c, begin, end );
addClip( clip, startFrame );
Clip *clip = Core::instance()->workflow()->createClip( QUuid( uuid ) );
if ( clip == nullptr )
continue ;
clip->setBoundaries( begin, end );
addClip( clip, startFrame );
clip->clipWorkflow()->loadFromVariant( m["filters"] );
}
clip->clipWorkflow()->loadFromVariant( m["filters"] );
}
EffectUser::loadFromVariant( variant.toMap()["filters"] );
}
......
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