Commit 75346155 authored by luyikei's avatar luyikei

Timeline: Select clips that are just moved

parent 516867cd
......@@ -328,6 +328,7 @@ Item {
if ( target.newTrackId !== target.trackId ) {
drag.source.parent.parent.parent.z = ++maxZ;
if ( drag.source.uuid !== target.uuid ) {
target.clipInfo["selected"] = true;
addClip( target.type, target.newTrackId, target.clipInfo );
removeClipFromTrack( target.type, target.trackId, target.uuid );
--i;
......
......@@ -93,7 +93,7 @@ Rectangle {
newDict["uuid"] = clipDict["uuid"];
newDict["trackId"] = trackId;
newDict["name"] = clipDict["name"];
newDict["selected"] = false;
newDict["selected"] = clipDict["selected"] === false ? false : true ;
newDict["linkedClip"] = clipDict["linkedClip"] ? clipDict["linkedClip"] : "";
var tracks = trackContainer( trackType )["tracks"];
while ( trackId > tracks.count - 1 )
......@@ -499,6 +499,7 @@ Rectangle {
onClipAdded: {
var clipInfo = workflow.clipInfo( uuid );
var type = clipInfo["audio"] ? "Audio" : "Video";
clipInfo["selected"] = false;
addClip( type, clipInfo["trackId"], clipInfo );
}
......
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