fixed snapping bug causing 0 frame clips to occur

This commit is contained in:
itsmattkc
2018-07-08 14:55:52 +01:00
parent 4b29e19a3e
commit ef31d6a29d
6 changed files with 28 additions and 16 deletions
+5 -4
View File
@@ -82,12 +82,12 @@ void Project::duplicate_selected() {
for (int i=0;i<items.size();i++) {
Media* m = get_media_from_tree(items.at(i));
if (m->type == MEDIA_TYPE_SEQUENCE) {
new_sequence(m->sequence->copy());
new_sequence(m->sequence->copy(), false);
}
}
}
void Project::new_sequence(Sequence *s) {
void Project::new_sequence(Sequence *s, bool open) {
Media* m = new Media();
m->type = MEDIA_TYPE_SEQUENCE;
m->sequence = s;
@@ -102,7 +102,7 @@ void Project::new_sequence(Sequence *s) {
project_changed = true;
set_sequence(s);
if (open) set_sequence(s);
}
Media* Project::import_file(QString file) {
@@ -425,7 +425,8 @@ void Project::load_project() {
}
}
new_sequence(temp_seq);
temp_seq->reset_undo();
new_sequence(temp_seq, false);
state = LOAD_STATE_IDLE;
} else if (stream.isStartElement()) {
if (stream.name() == "name") {