importtool: fixed broken snapping

Snap points were made before the ghost's in/outs were set resulting in
incorrect points.
This commit is contained in:
itsmattkc
2020-07-22 10:32:04 +10:00
parent c301f71d1a
commit 4268ccd75e
+3 -3
View File
@@ -258,9 +258,6 @@ void TimelineWidget::ImportTool::FootageToGhosts(rational ghost_start, const QLi
// Increment track count for this track type
track_offsets[track_type]++;
snap_points_.append(ghost->In());
snap_points_.append(ghost->Out());
ghost->setData(TimelineViewGhostItem::kAttachedFootage, QVariant::fromValue(stream));
ghost->SetMode(Timeline::kMove);
@@ -277,6 +274,9 @@ void TimelineWidget::ImportTool::FootageToGhosts(rational ghost_start, const QLi
ghost->SetIn(ghost_start);
ghost->SetOut(ghost_start + footage_duration);
snap_points_.append(ghost->In());
snap_points_.append(ghost->Out());
parent()->AddGhost(ghost);
}