[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [48422] branches/soc-2012-swiss_cheese/ source/blender/editors/space_view3d/drawobject.c: Fix display of normals for vertices and faces in edit mode

Nicholas Bishop nicholasbishop at gmail.com
Sat Jun 30 03:17:49 CEST 2012


Revision: 48422
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=48422
Author:   nicholasbishop
Date:     2012-06-30 01:17:38 +0000 (Sat, 30 Jun 2012)
Log Message:
-----------
Fix display of normals for vertices and faces in edit mode

Added calls to gpuImmediateFormat_V3() and gpuImmediateUnformat().

Modified Paths:
--------------
    branches/soc-2012-swiss_cheese/source/blender/editors/space_view3d/drawobject.c

Modified: branches/soc-2012-swiss_cheese/source/blender/editors/space_view3d/drawobject.c
===================================================================
--- branches/soc-2012-swiss_cheese/source/blender/editors/space_view3d/drawobject.c	2012-06-30 00:57:58 UTC (rev 48421)
+++ branches/soc-2012-swiss_cheese/source/blender/editors/space_view3d/drawobject.c	2012-06-30 01:17:38 UTC (rev 48422)
@@ -2242,9 +2242,11 @@
 
 	calcDrawDMNormalScale(ob, &data);
 
+	gpuImmediateFormat_V3();
 	gpuBegin(GL_LINES);
 	dm->foreachMappedFaceCenter(dm, draw_dm_face_normals__mapFunc, &data);
 	gpuEnd();
+	gpuImmediateUnformat();
 }
 
 static void draw_dm_face_centers__mapFunc(void *userData, int index, const float cent[3], const float UNUSED(no[3]))
@@ -2310,9 +2312,11 @@
 
 	calcDrawDMNormalScale(ob, &data);
 
+	gpuImmediateFormat_V3();
 	gpuBegin(GL_LINES);
 	dm->foreachMappedVert(dm, draw_dm_vert_normals__mapFunc, &data);
 	gpuEnd();
+	gpuImmediateUnformat();
 }
 
 /* Draw verts with color set based on selection */




More information about the Bf-blender-cvs mailing list