Commit f421ec3b authored by Vincent PINON's avatar Vincent PINON

fades ui: video instead of audio on AV clips

parent 71174b4e
......@@ -4158,7 +4158,7 @@ void CustomTrackView::mouseReleaseEvent(QMouseEvent * event)
}
} else if (item->fadeIn() != 0 && ix2 == -1) {
QDomElement effect;
if (item->isVideoOnly() || (item->clipType() != Audio && item->clipType() != AV && item->clipType() != Playlist)) {
if (item->isVideoOnly() || (item->clipType() != Audio /* && item->clipType() != AV */ && item->clipType() != Playlist)) {
// add video fade
effect = MainWindow::videoEffects.getEffectByTag("", "fade_from_black").cloneNode().toElement();
} else effect = MainWindow::audioEffects.getEffectByTag("volume", "fadein").cloneNode().toElement();
......@@ -4202,7 +4202,7 @@ void CustomTrackView::mouseReleaseEvent(QMouseEvent * event)
}
} else if (item->fadeOut() != 0 && ix2 == -1) {
QDomElement effect;
if (item->isVideoOnly() || (item->clipType() != Audio && item->clipType() != AV && item->clipType() != Playlist)) {
if (item->isVideoOnly() || (item->clipType() != Audio /* && item->clipType() != AV */ && item->clipType() != Playlist)) {
// add video fade
effect = MainWindow::videoEffects.getEffectByTag("", "fade_to_black").cloneNode().toElement();
} else effect = MainWindow::audioEffects.getEffectByTag("volume", "fadeout").cloneNode().toElement();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment