[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [46741] branches/soc-2011-tomato/intern/ raskter/raskter.c: Adds basic curves with holes support for multi-spline mask curves.

Peter Larabell xgl.asyliax at gmail.com
Thu May 17 17:52:57 CEST 2012


Revision: 46741
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=46741
Author:   xglasyliax
Date:     2012-05-17 15:52:56 +0000 (Thu, 17 May 2012)
Log Message:
-----------
Adds basic curves with holes support for multi-spline mask curves.

Modified Paths:
--------------
    branches/soc-2011-tomato/intern/raskter/raskter.c

Modified: branches/soc-2011-tomato/intern/raskter/raskter.c
===================================================================
--- branches/soc-2011-tomato/intern/raskter/raskter.c	2012-05-17 15:26:11 UTC (rev 46740)
+++ branches/soc-2011-tomato/intern/raskter/raskter.c	2012-05-17 15:52:56 UTC (rev 46741)
@@ -302,7 +302,13 @@
 			mpxl = spxl + MIN2(e_curr->x, rb.sizex) - 1;
 
 			/* draw the pixels. */
-			for (; cpxl <= mpxl; *cpxl++ = 1.0f) ;
+			for (; cpxl <= mpxl; cpxl++){
+				if(*cpxl < 0.5f){
+					*cpxl = 1.0f;
+				}else{
+					*cpxl = 0.0f;
+				}
+			}
 		}
 
 		/*




More information about the Bf-blender-cvs mailing list