diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-04-14 02:21:21 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-04-14 02:21:21 +0400 |
commit | dffbbe65cd7d2689dff9e62a0a642428017b249a (patch) | |
tree | 1eab5a55ec098e30175c43420c97777b80a2c3a8 /release | |
parent | a298cac9523395987aa9816b7fda7bb53b46912a (diff) |
remove checks for 'context.scene' when checking if freestyle is enabled.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index 94f25df4262..0c5a4f9976e 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -1891,6 +1891,7 @@ 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' @@ -1915,7 +1916,7 @@ class VIEW3D_MT_edit_mesh_edges(Menu): layout.separator() - if context.scene and bpy.app.build_options.freestyle: + if with_freestyle: layout.operator("mesh.mark_freestyle_edge").clear = False layout.operator("mesh.mark_freestyle_edge", text="Clear Freestyle Edge").clear = True @@ -1946,6 +1947,7 @@ class VIEW3D_MT_edit_mesh_faces(Menu): def draw(self, context): layout = self.layout + with_freestyle = bpy.app.build_options.freestyle layout.operator_context = 'INVOKE_REGION_WIN' @@ -1961,7 +1963,7 @@ class VIEW3D_MT_edit_mesh_faces(Menu): layout.separator() - if context.scene and bpy.app.build_options.freestyle: + if with_freestyle: layout.operator("mesh.mark_freestyle_face").clear = False layout.operator("mesh.mark_freestyle_face", text="Clear Freestyle Face").clear = True @@ -2551,6 +2553,7 @@ class VIEW3D_PT_view3d_meshdisplay(Panel): def draw(self, context): layout = self.layout + with_freestyle = bpy.app.build_options.freestyle mesh = context.active_object.data @@ -2558,8 +2561,6 @@ class VIEW3D_PT_view3d_meshdisplay(Panel): split = layout.split() - with_freestyle = context.scene and bpy.app.build_options.freestyle - col = split.column() col.label(text="Overlays:") col.prop(mesh, "show_faces", text="Faces") |