Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Dinges <blender@dingto.org>2009-10-13 21:49:05 +0400
committerThomas Dinges <blender@dingto.org>2009-10-13 21:49:05 +0400
commitee29802378281f69e073275ccb4d93da475d8d8d (patch)
tree4c9db81eee3b6722e442365c48d1bd0ce6c0e24a
parent12b3d458f28c2d9d7af25650f04d2a379bbbf604 (diff)
[#19634] Missing - "All Edges" Button in edit mode Preferences
-rw-r--r--release/scripts/ui/space_view3d.py6
-rw-r--r--source/blender/makesrna/intern/rna_mesh.c7
2 files changed, 8 insertions, 5 deletions
diff --git a/release/scripts/ui/space_view3d.py b/release/scripts/ui/space_view3d.py
index 1fd589b4846..cb3f91ad687 100644
--- a/release/scripts/ui/space_view3d.py
+++ b/release/scripts/ui/space_view3d.py
@@ -1235,6 +1235,8 @@ class VIEW3D_PT_3dview_meshdisplay(bpy.types.Panel):
col = layout.column()
col.itemL(text="Overlays:")
col.itemR(mesh, "draw_edges", text="Edges")
+ col.itemR(mesh, "all_edges")
+ col.itemS()
col.itemR(mesh, "draw_faces", text="Faces")
col.itemR(mesh, "draw_creases", text="Creases")
col.itemR(mesh, "draw_bevel_weights", text="Bevel Weights")
@@ -1253,7 +1255,6 @@ class VIEW3D_PT_3dview_meshdisplay(bpy.types.Panel):
col.itemR(mesh, "draw_edge_angle")
col.itemR(mesh, "draw_face_area")
-
class VIEW3D_PT_3dview_curvedisplay(bpy.types.Panel):
__space_type__ = 'VIEW_3D'
__region_type__ = 'UI'
@@ -1273,8 +1274,7 @@ class VIEW3D_PT_3dview_curvedisplay(bpy.types.Panel):
col.itemR(curve, "draw_handles", text="Handles")
col.itemR(curve, "draw_normals", text="Normals")
col.itemR(context.scene.tool_settings, "normal_size", text="Normal Size")
-
-
+
class VIEW3D_PT_background_image(bpy.types.Panel):
__space_type__ = 'VIEW_3D'
__region_type__ = 'UI'
diff --git a/source/blender/makesrna/intern/rna_mesh.c b/source/blender/makesrna/intern/rna_mesh.c
index 8b67ccecc3d..03fead8c54f 100644
--- a/source/blender/makesrna/intern/rna_mesh.c
+++ b/source/blender/makesrna/intern/rna_mesh.c
@@ -1546,6 +1546,10 @@ static void rna_def_mesh(BlenderRNA *brna)
RNA_def_property_ui_text(prop, "Draw Edges", "Displays selected edges using hilights in the 3d view and UV editor");
RNA_def_property_update(prop, 0, "rna_Mesh_update_draw");
+ 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");
+
prop= RNA_def_property(srna, "draw_faces", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "drawflag", ME_DRAWFACES);
RNA_def_property_ui_text(prop, "Draw Faces", "Displays all faces as shades in the 3d view and UV editor");
@@ -1580,8 +1584,7 @@ static void rna_def_mesh(BlenderRNA *brna)
RNA_def_property_boolean_sdna(prop, NULL, "drawflag", ME_DRAWSHARP);
RNA_def_property_ui_text(prop, "Draw Sharp", "Displays sharp edges, used with the EdgeSplit modifier");
RNA_def_property_update(prop, 0, "rna_Mesh_update_draw");
-
-
+
prop= RNA_def_property(srna, "draw_edge_lenght", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "drawflag", ME_DRAW_EDGELEN);
RNA_def_property_ui_text(prop, "Edge Length", "Displays selected edge lengths");