Fix for own multilayer EXR fix, should not have caused any issues might as well

make sure it works if this function gets called from other places.
This commit is contained in:
Brecht Van Lommel
2013-02-12 15:58:06 +00:00
parent 58a6f07649
commit cdb8e39565

View File

@@ -595,12 +595,8 @@ void IMB_rectfill_alpha(ImBuf *ibuf, const float value)
{
int i;
if (ibuf->rect_float) {
float *fbuf;
if (ibuf->channels != 4) return;
fbuf = ibuf->rect_float + 3;
if (ibuf->rect_float && (ibuf->channels == 4)) {
float *fbuf = ibuf->rect_float + 3;
for (i = ibuf->x * ibuf->y; i > 0; i--, fbuf += 4) { *fbuf = value; }
}