forked from bartvdbraak/blender
[#19634] Missing - "All Edges" Button in edit mode Preferences
This commit is contained in:
parent
12b3d458f2
commit
ee29802378
@ -1235,6 +1235,8 @@ class VIEW3D_PT_3dview_meshdisplay(bpy.types.Panel):
|
|||||||
col = layout.column()
|
col = layout.column()
|
||||||
col.itemL(text="Overlays:")
|
col.itemL(text="Overlays:")
|
||||||
col.itemR(mesh, "draw_edges", text="Edges")
|
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_faces", text="Faces")
|
||||||
col.itemR(mesh, "draw_creases", text="Creases")
|
col.itemR(mesh, "draw_creases", text="Creases")
|
||||||
col.itemR(mesh, "draw_bevel_weights", text="Bevel Weights")
|
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_edge_angle")
|
||||||
col.itemR(mesh, "draw_face_area")
|
col.itemR(mesh, "draw_face_area")
|
||||||
|
|
||||||
|
|
||||||
class VIEW3D_PT_3dview_curvedisplay(bpy.types.Panel):
|
class VIEW3D_PT_3dview_curvedisplay(bpy.types.Panel):
|
||||||
__space_type__ = 'VIEW_3D'
|
__space_type__ = 'VIEW_3D'
|
||||||
__region_type__ = 'UI'
|
__region_type__ = 'UI'
|
||||||
@ -1274,7 +1275,6 @@ class VIEW3D_PT_3dview_curvedisplay(bpy.types.Panel):
|
|||||||
col.itemR(curve, "draw_normals", text="Normals")
|
col.itemR(curve, "draw_normals", text="Normals")
|
||||||
col.itemR(context.scene.tool_settings, "normal_size", text="Normal Size")
|
col.itemR(context.scene.tool_settings, "normal_size", text="Normal Size")
|
||||||
|
|
||||||
|
|
||||||
class VIEW3D_PT_background_image(bpy.types.Panel):
|
class VIEW3D_PT_background_image(bpy.types.Panel):
|
||||||
__space_type__ = 'VIEW_3D'
|
__space_type__ = 'VIEW_3D'
|
||||||
__region_type__ = 'UI'
|
__region_type__ = 'UI'
|
||||||
|
@ -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_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");
|
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);
|
prop= RNA_def_property(srna, "draw_faces", PROP_BOOLEAN, PROP_NONE);
|
||||||
RNA_def_property_boolean_sdna(prop, NULL, "drawflag", ME_DRAWFACES);
|
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");
|
RNA_def_property_ui_text(prop, "Draw Faces", "Displays all faces as shades in the 3d view and UV editor");
|
||||||
@ -1581,7 +1585,6 @@ static void rna_def_mesh(BlenderRNA *brna)
|
|||||||
RNA_def_property_ui_text(prop, "Draw Sharp", "Displays sharp edges, used with the EdgeSplit modifier");
|
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");
|
RNA_def_property_update(prop, 0, "rna_Mesh_update_draw");
|
||||||
|
|
||||||
|
|
||||||
prop= RNA_def_property(srna, "draw_edge_lenght", PROP_BOOLEAN, PROP_NONE);
|
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_boolean_sdna(prop, NULL, "drawflag", ME_DRAW_EDGELEN);
|
||||||
RNA_def_property_ui_text(prop, "Edge Length", "Displays selected edge lengths");
|
RNA_def_property_ui_text(prop, "Edge Length", "Displays selected edge lengths");
|
||||||
|
Loading…
Reference in New Issue
Block a user