diff options
Diffstat (limited to 'release/scripts/startup/bl_ui/space_view3d.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d.py | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index 689cd635606..7807bb11c8a 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -1838,8 +1838,9 @@ class VIEW3D_MT_edit_mesh_edges(Menu): layout.separator() - layout.operator("mesh.mark_freestyle_edge").clear = False - layout.operator("mesh.mark_freestyle_edge", text="Clear Freestyle Edge").clear = True + if context.scene and 'FREESTYLE' in bpy.app.build_options: + layout.operator("mesh.mark_freestyle_edge").clear = False + layout.operator("mesh.mark_freestyle_edge", text="Clear Freestyle Edge").clear = True layout.separator() @@ -1883,8 +1884,9 @@ class VIEW3D_MT_edit_mesh_faces(Menu): layout.separator() - layout.operator("mesh.mark_freestyle_face").clear = False - layout.operator("mesh.mark_freestyle_face", text="Clear Freestyle Face").clear = True + if context.scene and 'FREESTYLE' in bpy.app.build_options: + layout.operator("mesh.mark_freestyle_face").clear = False + layout.operator("mesh.mark_freestyle_face", text="Clear Freestyle Face").clear = True layout.separator() @@ -2491,8 +2493,9 @@ class VIEW3D_PT_view3d_meshdisplay(Panel): col.prop(mesh, "show_edge_bevel_weight", text="Bevel Weights") col.prop(mesh, "show_edge_seams", text="Seams") col.prop(mesh, "show_edge_sharp", text="Sharp") - col.prop(mesh, "show_freestyle_edge_marks", text="Freestyle Edge Marks") - col.prop(mesh, "show_freestyle_face_marks", text="Freestyle Face Marks") + if context.scene and 'FREESTYLE' in bpy.app.build_options: + col.prop(mesh, "show_freestyle_edge_marks", text="Freestyle Edge Marks") + col.prop(mesh, "show_freestyle_face_marks", text="Freestyle Face Marks") col.separator() col.label(text="Normals:") |