[Bf-blender-cvs] [69fe733] hair_system: Draw hair points, as a visual debugging helper.

Lukas Tönne noreply at git.blender.org
Thu Jul 31 10:38:37 CEST 2014


Commit: 69fe733f75eba7d5e227aa1c4969b471d983207d
Author: Lukas Tönne
Date:   Thu Jul 31 09:48:24 2014 +0200
Branches: hair_system
https://developer.blender.org/rB69fe733f75eba7d5e227aa1c4969b471d983207d

Draw hair points, as a visual debugging helper.

===================================================================

M	source/blender/editors/space_view3d/drawhair.c

===================================================================

diff --git a/source/blender/editors/space_view3d/drawhair.c b/source/blender/editors/space_view3d/drawhair.c
index 2a6c5cb..4591fa0 100644
--- a/source/blender/editors/space_view3d/drawhair.c
+++ b/source/blender/editors/space_view3d/drawhair.c
@@ -70,6 +70,14 @@ static void draw_hair_curve(HairSystem *UNUSED(hsys), HairCurve *hair)
 	}
 	glEnd();
 	
+	glPointSize(2.5f);
+	glBegin(GL_POINTS);
+	for (point = hair->points, k = 0; k < hair->totpoints; ++point, ++k) {
+		glVertex3fv(point->co);
+	}
+	glEnd();
+	glPointSize(1.0f);
+	
 #if 0
 	/* frames */
 	{




More information about the Bf-blender-cvs mailing list