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:
authorCampbell Barton <ideasman42@gmail.com>2021-06-22 10:19:02 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-06-22 10:19:02 +0300
commit53ba9f01e2e7e4efb25143ec45950eaecbe1317f (patch)
tree09d295af764f15f1c836280e62dee602d5f6854f /release
parent1725bfc3cbc7b92896976ed1ed05e6b3f5b7c9a4 (diff)
Fix error in context menu when built without freestyle
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index 6fa59e048c2..bc66725b7fd 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -3727,6 +3727,8 @@ class VIEW3D_MT_edit_mesh_context_menu(Menu):
layout = self.layout
+ with_freestyle = bpy.app.build_options.freestyle
+
layout.operator_context = 'INVOKE_REGION_WIN'
# If nothing is selected
@@ -3844,10 +3846,11 @@ class VIEW3D_MT_edit_mesh_context_menu(Menu):
col.operator("mesh.mark_sharp")
col.operator("mesh.mark_sharp", text="Clear Sharp").clear = True
- col.separator()
+ if with_freestyle:
+ col.separator()
- col.operator("mesh.mark_freestyle_edge").clear = False
- col.operator("mesh.mark_freestyle_edge", text="Clear Freestyle Edge").clear = True
+ col.operator("mesh.mark_freestyle_edge").clear = False
+ col.operator("mesh.mark_freestyle_edge", text="Clear Freestyle Edge").clear = True
col.separator()