one last ripple bug (and transition bug)

This commit is contained in:
itsmattkc
2018-12-30 22:29:16 +11:00
parent c81714fe73
commit f44cf37337
2 changed files with 11 additions and 11 deletions
+9 -9
View File
@@ -58,16 +58,16 @@ void Sequence::hard_delete_transition(Clip *c, int type) {
int transition_index = (type == TA_OPENING_TRANSITION) ? c->opening_transition : c->closing_transition;
if (transition_index > -1) {
bool del = true;
for (int i=0;i<clips.size();i++) {
Clip* cc = clips.at(i);
if (cc != NULL
&& c != cc
&& (cc->opening_transition == transition_index
|| cc->closing_transition == transition_index)) {
// another clip is using this, don't delete just yet
del = false;
break;
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;
}
del = false;
t->secondary_clip = NULL;
}
if (del) {