one last ripple bug (and transition bug)
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -1834,8 +1834,8 @@ void TimelineWidget::mouseMoveEvent(QMouseEvent *event) {
|
||||
for (int j=0;j<clip_list.size();j++) {
|
||||
Clip* compare = clip_list.at(j);
|
||||
if (compare->track == c->track) {
|
||||
if ((panel_timeline->trim_in_point && compare->timeline_out < c->timeline_out)
|
||||
|| (!panel_timeline->trim_in_point && compare->timeline_in > c->timeline_in)) {
|
||||
if ((!clip_is_post && compare->timeline_out < c->timeline_out)
|
||||
|| (clip_is_post && compare->timeline_in > c->timeline_in)) {
|
||||
clip_list[j] = c;
|
||||
}
|
||||
found = true;
|
||||
|
||||
Reference in New Issue
Block a user