fixed transition glitches

This commit is contained in:
itsmattkc
2018-12-30 22:54:26 +11:00
parent f44cf37337
commit 1204a69baa
5 changed files with 57 additions and 7 deletions
+14 -6
View File
@@ -61,13 +61,21 @@ void Sequence::hard_delete_transition(Clip *c, int type) {
Transition* t = transitions.at(transition_index);
if (t->secondary_clip != NULL) {
if (type == TA_OPENING_TRANSITION) {
// convert to closing transition
t->parent_clip = t->secondary_clip;
}
for (int i=0;i<clips.size();i++) {
Clip* comp = clips.at(i);
if (comp != NULL
&& c != comp
&& (c->opening_transition == transition_index
|| c->closing_transition == transition_index)) {
if (type == TA_OPENING_TRANSITION) {
// convert to closing transition
t->parent_clip = t->secondary_clip;
}
del = false;
t->secondary_clip = NULL;
del = false;
t->secondary_clip = NULL;
}
}
}
if (del) {