added condition to track validator

This commit is contained in:
itsmattkc
2019-04-05 02:20:37 +11:00
parent 9f029bedfa
commit ce725ae32a
+8 -3
View File
@@ -1826,9 +1826,14 @@ void TimelineView::update_ghosts(const QPoint& mouse_pos, bool lock_frame) {
}
// Prevent any clips from going below the "zeroeth" track
int track_validator = g.track->Index() + track_diff;
if (track_validator < 0) {
track_diff -= track_validator;
if (ParentTimeline()->importing || g.track->type() == ParentTimeline()->drag_track_start->type()) {
int track_validator = g.track->Index() + track_diff;
if (track_validator < 0) {
track_diff -= track_validator;
}
}
} else if (effective_tool == olive::timeline::TIMELINE_TOOL_TRANSITION) {