[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [29430] trunk/blender/source/blender: Fixed bug ##22580, 'All Edges' display doesn' t work unless enter & exit edit mode for mesh
Nicholas Bishop
nicholasbishop at gmail.com
Sun Jun 13 04:54:56 CEST 2010
Revision: 29430
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=29430
Author: nicholasbishop
Date: 2010-06-13 04:54:55 +0200 (Sun, 13 Jun 2010)
Log Message:
-----------
Fixed bug ##22580, 'All Edges' display doesn't work unless enter & exit edit mode for mesh
* Pass the appropriate mesh flag into dm->drawEdges
* Added the object and draw update notifiers to the RNA property
Modified Paths:
--------------
trunk/blender/source/blender/editors/space_view3d/drawobject.c
trunk/blender/source/blender/makesrna/intern/rna_mesh.c
Modified: trunk/blender/source/blender/editors/space_view3d/drawobject.c
===================================================================
--- trunk/blender/source/blender/editors/space_view3d/drawobject.c 2010-06-13 00:11:42 UTC (rev 29429)
+++ trunk/blender/source/blender/editors/space_view3d/drawobject.c 2010-06-13 02:54:55 UTC (rev 29430)
@@ -2725,7 +2725,7 @@
}
if((v3d->flag2 & V3D_RENDER_OVERRIDE && v3d->drawtype >= OB_SOLID)==0)
- dm->drawEdges(dm, (dt==OB_WIRE || totface==0), 0);
+ dm->drawEdges(dm, (dt==OB_WIRE || totface==0), me->drawflag & ME_ALLEDGES);
if (dt!=OB_WIRE && draw_wire==2) {
glDepthMask(1);
Modified: trunk/blender/source/blender/makesrna/intern/rna_mesh.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_mesh.c 2010-06-13 00:11:42 UTC (rev 29429)
+++ trunk/blender/source/blender/makesrna/intern/rna_mesh.c 2010-06-13 02:54:55 UTC (rev 29430)
@@ -33,6 +33,8 @@
#include "DNA_meshdata_types.h"
#include "DNA_object_types.h"
+#include "WM_types.h"
+
#ifdef RNA_RUNTIME
#include "DNA_scene_types.h"
@@ -1806,6 +1808,7 @@
prop= RNA_def_property(srna, "all_edges", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "drawflag", ME_ALLEDGES);
RNA_def_property_ui_text(prop, "All Edges", "Displays all edges for wireframe in all view modes in the 3D view");
+ RNA_def_property_update(prop, NC_OBJECT|ND_DRAW, NULL);
prop= RNA_def_property(srna, "draw_faces", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "drawflag", ME_DRAWFACES);
More information about the Bf-blender-cvs
mailing list