fix transparent mov output (#2544)
This commit is contained in:
parent
de71c0db14
commit
be59e62879
1 changed files with 5 additions and 1 deletions
|
@ -515,7 +515,11 @@ void RenderCommand::rasterRender(bool isPreview) {
|
||||||
// fixes background colors for non alpha-enabled movie types (eventually
|
// fixes background colors for non alpha-enabled movie types (eventually
|
||||||
// transparent gif would be good)
|
// transparent gif would be good)
|
||||||
currBgColor.m = 255;
|
currBgColor.m = 255;
|
||||||
if (isMovieType(ext)) {
|
// Mov may have alpha channel under some settings (Millions of Colors+ color
|
||||||
|
// depth). I tried to make OT to detect the mov settings and adaptively switch
|
||||||
|
// the behavior, but ended in vain :-(
|
||||||
|
// So I just omitted every mov from applying solid background as a quick fix.
|
||||||
|
if (isMovieType(ext) && ext != "mov") {
|
||||||
scene->getProperties()->setBgColor(currBgColor);
|
scene->getProperties()->setBgColor(currBgColor);
|
||||||
}
|
}
|
||||||
// for non alpha-enabled images (like jpg), background color will be inserted
|
// for non alpha-enabled images (like jpg), background color will be inserted
|
||||||
|
|
Loading…
Reference in a new issue