Fix #110635: VSE: strip color multiplication affecting alpha channel #110984

Merged
Richard Antalik merged 4 commits from Ha_Lo/blender:main into main 2023-08-18 12:36:11 +02:00
1 changed files with 0 additions and 6 deletions
Showing only changes of commit 0ff8bf549a - Show all commits

View File

@ -586,7 +586,6 @@ static void multibuf(ImBuf *ibuf, const float fmul)
rt[0] = min_ii((imul * rt[0]) >> 8, 255);
rt[1] = min_ii((imul * rt[1]) >> 8, 255);
rt[2] = min_ii((imul * rt[2]) >> 8, 255);
rt[3] = min_ii((imul * rt[3]) >> 8, 255);
rt += 4;
}
@ -597,15 +596,10 @@ static void multibuf(ImBuf *ibuf, const float fmul)
rt_float[0] *= fmul;
rt_float[1] *= fmul;
rt_float[2] *= fmul;
rt_float[3] *= fmul;
rt_float += 4;
}
}
if (ELEM(ibuf->planes, R_IMF_PLANES_BW, R_IMF_PLANES_RGB) && fmul < 1.0f) {
ibuf->planes = R_IMF_PLANES_RGBA;
}
}
static ImBuf *input_preprocess(const SeqRenderData *context,