Commit 4fc8e2f0 authored by luyikei's avatar luyikei

Clip.qml: Correctly update length

parent b52010e8
...@@ -158,6 +158,7 @@ Rectangle { ...@@ -158,6 +158,7 @@ Rectangle {
position = clipInfo["position"]; position = clipInfo["position"];
begin = clipInfo["begin"]; begin = clipInfo["begin"];
end = clipInfo["end"]; end = clipInfo["end"];
length = clipInfo["length"];
} }
onPositionChanged: { onPositionChanged: {
...@@ -172,6 +173,10 @@ Rectangle { ...@@ -172,6 +173,10 @@ Rectangle {
clipInfo["end"] = end; clipInfo["end"] = end;
} }
onLengthChanged: {
clipInfo["length"] = length;
}
onSelectedChanged: { onSelectedChanged: {
if ( selected === true ) { if ( selected === true ) {
selectedClips.push( uuid ); selectedClips.push( uuid );
......
...@@ -739,6 +739,7 @@ Rectangle { ...@@ -739,6 +739,7 @@ Rectangle {
clip.lastPosition = clipInfo["position"]; clip.lastPosition = clipInfo["position"];
clip.end = clipInfo["end"]; clip.end = clipInfo["end"];
clip.begin = clipInfo["begin"]; clip.begin = clipInfo["begin"];
clip.length = clipInfo["length"];
clip.updateEffects( clipInfo ); clip.updateEffects( 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