[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [54503] trunk/blender/source/blender/imbuf /intern/rectop.c: Fix for own multilayer EXR fix, should not have caused any issues might as well
Brecht Van Lommel
brechtvanlommel at pandora.be
Tue Feb 12 16:58:06 CET 2013
Revision: 54503
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=54503
Author: blendix
Date: 2013-02-12 15:58:06 +0000 (Tue, 12 Feb 2013)
Log Message:
-----------
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.
Modified Paths:
--------------
trunk/blender/source/blender/imbuf/intern/rectop.c
Modified: trunk/blender/source/blender/imbuf/intern/rectop.c
===================================================================
--- trunk/blender/source/blender/imbuf/intern/rectop.c 2013-02-12 15:51:05 UTC (rev 54502)
+++ trunk/blender/source/blender/imbuf/intern/rectop.c 2013-02-12 15:58:06 UTC (rev 54503)
@@ -595,12 +595,8 @@
{
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; }
}
More information about the Bf-blender-cvs
mailing list