diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2010-06-13 06:54:55 +0400 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2010-06-13 06:54:55 +0400 |
commit | b26a23786d513e78d246421bd031d6fbf616e214 (patch) | |
tree | 8ee42d0c4122d26152012d57c31e56b618b6d0dc /source/blender/makesrna/intern/rna_mesh.c | |
parent | 95b9e4171efaef3a6d6a9fe1d7c51931ea9aea32 (diff) |
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
Diffstat (limited to 'source/blender/makesrna/intern/rna_mesh.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_mesh.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_mesh.c b/source/blender/makesrna/intern/rna_mesh.c index 28c7f7eeb58..b289373f349 100644 --- a/source/blender/makesrna/intern/rna_mesh.c +++ b/source/blender/makesrna/intern/rna_mesh.c @@ -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 @@ static void rna_def_mesh(BlenderRNA *brna) 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); |