[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [13689] trunk/blender/source/blender/nodes /intern/CMP_nodes/CMP_image.c: stupid me! if you move var declarations sometimes you have to add
Joseph Eagar
joeedh at gmail.com
Thu Feb 14 16:14:01 CET 2008
Revision: 13689
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=13689
Author: joeedh
Date: 2008-02-14 16:14:01 +0100 (Thu, 14 Feb 2008)
Log Message:
-----------
stupid me! if you move var declarations sometimes you have to add
assignments outside of the var declarations!
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 14:57:41 UTC (rev 13688)
+++ trunk/blender/source/blender/nodes/intern/CMP_nodes/CMP_image.c 2008-02-14 15:14:01 UTC (rev 13689)
@@ -205,7 +205,7 @@
/*respect image premul option*/
if (stackbuf->type==CB_RGBA && ima->flag & IMA_DO_PREMUL) {
int i;
- float *pixel = stackbuf->rect;
+ float *pixel;
/*first duplicate stackbuf->rect, since it's just a pointer
to the source imbuf, and we don't want to change that.*/
@@ -213,6 +213,7 @@
/*premul the image*/
+ pixel = stackbuf->rect;
for (i=0; i<stackbuf->x*stackbuf->y; i++, pixel += 4) {
pixel[0] *= pixel[3];
pixel[1] *= pixel[3];
More information about the Bf-blender-cvs
mailing list