[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [59117] branches/soc-2013-paint/source/ blender/editors/sculpt_paint/paint_stroke.c: Define the stroke curve outline better

Antony Riakiotakis kalast at gmail.com
Tue Aug 13 20:34:20 CEST 2013


Revision: 59117
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=59117
Author:   psy-fi
Date:     2013-08-13 18:34:20 +0000 (Tue, 13 Aug 2013)
Log Message:
-----------
Define the stroke curve outline better

Modified Paths:
--------------
    branches/soc-2013-paint/source/blender/editors/sculpt_paint/paint_stroke.c

Modified: branches/soc-2013-paint/source/blender/editors/sculpt_paint/paint_stroke.c
===================================================================
--- branches/soc-2013-paint/source/blender/editors/sculpt_paint/paint_stroke.c	2013-08-13 18:02:33 UTC (rev 59116)
+++ branches/soc-2013-paint/source/blender/editors/sculpt_paint/paint_stroke.c	2013-08-13 18:34:20 UTC (rev 59117)
@@ -319,10 +319,18 @@
 							                  cp->next->bez.vec[1][j],
 							                  data + j, NUM_SEGMENTS, 2 * sizeof(float));
 
+			glLineWidth(4.0);
+			glColor4f(0.0, 0.0, 0.0, 0.5);
 			glBegin(GL_LINE_STRIP);
 			for (j = 0; j < NUM_SEGMENTS; j++)
 				glVertex2fv(data + j * 2);
 			glEnd();
+			glLineWidth(2.0);
+			glColor4f(1.0, 1.0, 1.0, 0.5);
+			glBegin(GL_LINE_STRIP);
+			for (j = 0; j < NUM_SEGMENTS; j++)
+				glVertex2fv(data + j * 2);
+			glEnd();
 			cp = cp->next;
 		}
 




More information about the Bf-blender-cvs mailing list