[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [23814] trunk/blender: [#19634] Missing - "All Edges" Button in edit mode Preferences

Thomas Dinges dingto at gmx.de
Tue Oct 13 19:49:05 CEST 2009


Revision: 23814
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=23814
Author:   dingto
Date:     2009-10-13 19:49:05 +0200 (Tue, 13 Oct 2009)

Log Message:
-----------
[#19634] Missing - "All Edges" Button in edit mode Preferences 

Modified Paths:
--------------
    trunk/blender/release/scripts/ui/space_view3d.py
    trunk/blender/source/blender/makesrna/intern/rna_mesh.c

Modified: trunk/blender/release/scripts/ui/space_view3d.py
===================================================================
--- trunk/blender/release/scripts/ui/space_view3d.py	2009-10-13 17:15:12 UTC (rev 23813)
+++ trunk/blender/release/scripts/ui/space_view3d.py	2009-10-13 17:49:05 UTC (rev 23814)
@@ -1235,6 +1235,8 @@
 		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 @@
 		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 @@
 		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'

Modified: trunk/blender/source/blender/makesrna/intern/rna_mesh.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_mesh.c	2009-10-13 17:15:12 UTC (rev 23813)
+++ trunk/blender/source/blender/makesrna/intern/rna_mesh.c	2009-10-13 17:49:05 UTC (rev 23814)
@@ -1546,6 +1546,10 @@
 	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 @@
 	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");





More information about the Bf-blender-cvs mailing list