[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [13688] trunk/blender/source/blender/nodes /intern/CMP_nodes/CMP_image.c: in my tiredness I didn' t declare some vars at the top of the block.
Joseph Eagar
joeedh at gmail.com
Thu Feb 14 15:57:43 CET 2008
Revision: 13688
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=13688
Author: joeedh
Date: 2008-02-14 15:57:41 +0100 (Thu, 14 Feb 2008)
Log Message:
-----------
in my tiredness I didn't declare some vars at the top of the block.
Modified Paths:
--------------
trunk/blender/source/blender/nodes/intern/CMP_nodes/CMP_image.c
Modified: trunk/blender/source/blender/nodes/intern/CMP_nodes/CMP_image.c
===================================================================
--- trunk/blender/source/blender/nodes/intern/CMP_nodes/CMP_image.c 2008-02-14 13:36:59 UTC (rev 13687)
+++ trunk/blender/source/blender/nodes/intern/CMP_nodes/CMP_image.c 2008-02-14 14:57:41 UTC (rev 13688)
@@ -204,14 +204,14 @@
/*respect image premul option*/
if (stackbuf->type==CB_RGBA && ima->flag & IMA_DO_PREMUL) {
+ int i;
+ float *pixel = stackbuf->rect;
/*first duplicate stackbuf->rect, since it's just a pointer
to the source imbuf, and we don't want to change that.*/
stackbuf->rect = MEM_dupallocN(stackbuf->rect);
/*premul the image*/
- int i;
- float *pixel = stackbuf->rect;
for (i=0; i<stackbuf->x*stackbuf->y; i++, pixel += 4) {
pixel[0] *= pixel[3];
More information about the Bf-blender-cvs
mailing list