Commit 61cb6624 authored by luyikei's avatar luyikei

Track.qml: Check entity of linkedClip

parent 75346155
......@@ -294,6 +294,8 @@ Item {
// Let's find newX of the linked clip
if ( target.linked === true ) {
var linkedClipItem = findClipItem( target.linkedClip );
if ( linkedClipItem ) {
var newLinkedClipX = findNewPosition( newX, linkedClipItem, isMagneticMode );
// If linked clip collides
......@@ -311,6 +313,7 @@ Item {
linkedClipItem.setPixelPosition( newX );
alreadyCalculated.push( target.linkedClip );
}
}
target.setPixelPosition( newX );
alreadyCalculated.push( target.uuid );
}
......
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