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:
authorWilliam Reynish <billreynish>2018-11-09 19:22:05 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-11-09 20:06:25 +0300
commit8aa17c5b12d734332c0af62a110524c4e523fb64 (patch)
tree025462dfe6e173ee8bcdefe8bc51d66b3b08d93e
parent8d07af5d109b20057d6d31bc066c4937e85a5c79 (diff)
UI: add edge markings to top level of edge menu again.
These are commonly used and should be quick to access.
-rw-r--r--release/scripts/startup/bl_ui/space_view3d.py26
1 files changed, 25 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index 873674ee092..0185fc721ad 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -2985,6 +2985,8 @@ class VIEW3D_MT_edit_mesh_edges(Menu):
def draw(self, context):
layout = self.layout
+ with_freestyle = bpy.app.build_options.freestyle
+
layout.operator_context = 'INVOKE_REGION_WIN'
layout.operator("mesh.extrude_edges_move", text="Extrude Edges"),
@@ -3009,7 +3011,29 @@ class VIEW3D_MT_edit_mesh_edges(Menu):
layout.separator()
- layout.menu("VIEW3D_MT_edit_mesh_edges_data")
+ layout.operator("transform.edge_crease")
+ layout.operator("transform.edge_bevelweight")
+
+ layout.separator()
+
+ layout.operator("mesh.mark_seam").clear = False
+ layout.operator("mesh.mark_seam", text="Clear Seam").clear = True
+
+ layout.separator()
+
+ layout.operator("mesh.mark_sharp")
+ layout.operator("mesh.mark_sharp", text="Clear Sharp").clear = True
+
+ layout.operator("mesh.mark_sharp", text="Mark Sharp from Vertices").use_verts = True
+ props = layout.operator("mesh.mark_sharp", text="Clear Sharp from Vertices")
+ props.use_verts = True
+ props.clear = True
+
+ if with_freestyle:
+ layout.separator()
+
+ layout.operator("mesh.mark_freestyle_edge").clear = False
+ layout.operator("mesh.mark_freestyle_edge", text="Clear Freestyle Edge").clear = True
class VIEW3D_MT_edit_mesh_faces_data(Menu):