diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-02-12 19:58:06 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-02-12 19:58:06 +0400 |
commit | cdb8e3956517cf3bb6a4de5e6b0884cb28bd98ee (patch) | |
tree | 7458fbbac8fe7709befe454afa0ad7ce189434ea /source/blender/imbuf/intern/rectop.c | |
parent | 58a6f0764916adecb71385cd43b917f1b708b334 (diff) |
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.
Diffstat (limited to 'source/blender/imbuf/intern/rectop.c')
-rw-r--r-- | source/blender/imbuf/intern/rectop.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/source/blender/imbuf/intern/rectop.c b/source/blender/imbuf/intern/rectop.c index cae705ae798..0b739b9fe92 100644 --- a/source/blender/imbuf/intern/rectop.c +++ b/source/blender/imbuf/intern/rectop.c @@ -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; } } |