sorta fixed some stuff

This commit is contained in:
itsmattkc
2018-07-25 21:14:44 +01:00
parent 3a971fbfa3
commit dcde4bd46c
5 changed files with 37 additions and 5 deletions
+6 -1
View File
@@ -908,7 +908,12 @@ bool Timeline::snap_to_point(long point, long* l) {
void Timeline::snap_to_clip(long* l, bool playhead_inclusive) {
snapped = false;
if (snapping) {
if (!playhead_inclusive || !snap_to_point(playhead, l)) {
if (playhead_inclusive && !playing) {
playhead_inclusive = snap_to_point(playhead, l);
} else {
playhead_inclusive = false;
}
if (!playhead_inclusive) {
for (int i=0;i<sequence->clip_count();i++) {
Clip* c = sequence->get_clip(i);
if (c != NULL) {