Commit 1181bafa authored by luyikei's avatar luyikei

Clip.qml: Better handling of lastPosition

parent cc9bea20
...@@ -348,7 +348,7 @@ Item { ...@@ -348,7 +348,7 @@ Item {
uuid: model.uuid uuid: model.uuid
libraryUuid: model.libraryUuid libraryUuid: model.libraryUuid
position: model.position position: model.position
lastPosition: model.lastPosition lastPosition: model.position
begin: model.begin begin: model.begin
end: model.end end: model.end
clipInfo: model clipInfo: model
......
...@@ -93,7 +93,6 @@ Rectangle { ...@@ -93,7 +93,6 @@ Rectangle {
newDict["begin"] = clipDict["begin"]; newDict["begin"] = clipDict["begin"];
newDict["end"] = clipDict["end"]; newDict["end"] = clipDict["end"];
newDict["position"] = clipDict["position"]; newDict["position"] = clipDict["position"];
newDict["lastPosition"] = clipDict["position"];
newDict["length"] = clipDict["length"]; newDict["length"] = clipDict["length"];
newDict["libraryUuid"] = clipDict["libraryUuid"]; newDict["libraryUuid"] = clipDict["libraryUuid"];
newDict["uuid"] = clipDict["uuid"]; newDict["uuid"] = clipDict["uuid"];
...@@ -656,6 +655,7 @@ Rectangle { ...@@ -656,6 +655,7 @@ Rectangle {
var clipInfo = workflow.clipInfo( uuid ); var clipInfo = workflow.clipInfo( uuid );
var clip = findClipItem( uuid ); var clip = findClipItem( uuid );
clip.position = clipInfo["position"]; clip.position = clipInfo["position"];
clip.lastPosition = clipInfo["position"];
clip.end = clipInfo["end"]; clip.end = clipInfo["end"];
clip.begin = clipInfo["begin"]; clip.begin = clipInfo["begin"];
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