diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-03-23 08:21:51 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-03-23 08:21:51 +0300 |
commit | 70d2456ff19f80bbc09467428992ffd6091e91c4 (patch) | |
tree | fca5ee93f17e5d398bf0025639e8cbb64d9f269a /release/scripts/startup/bl_ui | |
parent | bb78f38bd1328b8cfe6b4e912e8bb0371035854a (diff) |
Cleanup: unused variables, imports
Diffstat (limited to 'release/scripts/startup/bl_ui')
-rw-r--r-- | release/scripts/startup/bl_ui/space_sequencer.py | 2 | ||||
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d.py | 4 | ||||
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d_toolbar.py | 3 |
3 files changed, 2 insertions, 7 deletions
diff --git a/release/scripts/startup/bl_ui/space_sequencer.py b/release/scripts/startup/bl_ui/space_sequencer.py index 063d8f9184f..f6a03b4769c 100644 --- a/release/scripts/startup/bl_ui/space_sequencer.py +++ b/release/scripts/startup/bl_ui/space_sequencer.py @@ -2015,7 +2015,7 @@ class SEQUENCER_PT_view(SequencerButtonsPanel_Output, Panel): col.prop(st, "proxy_render_size") col = layout.column() - prop = col.prop(st, "use_proxies") + col.prop(st, "use_proxies") if st.proxy_render_size in {'NONE', 'SCENE'}: col.enabled = False diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index c13cf97d24a..e68f006ccc1 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -3775,8 +3775,6 @@ class VIEW3D_MT_edit_mesh_context_menu(Menu): col.operator("mesh.delete", text="Delete Vertices").type = 'VERT' if is_edge_mode: - render = context.scene.render - col = row.column(align=True) col.label(text="Edge Context Menu", icon='EDGESEL') col.separator() @@ -4005,8 +4003,6 @@ class VIEW3D_MT_edit_mesh_edges_data(Menu): def draw(self, context): layout = self.layout - render = context.scene.render - layout.operator_context = 'INVOKE_REGION_WIN' layout.operator("transform.edge_crease") diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py index ee8fc1f3531..72baa5331bf 100644 --- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py +++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py @@ -1848,7 +1848,7 @@ class VIEW3D_PT_tools_grease_pencil_brush_weight_falloff(GreasePencilBrushFallof ts = context.tool_settings settings = ts.gpencil_weight_paint brush = settings.brush - return (settings and settings.brush and settings.brush.curve) + return (brush and brush.curve) # Grease Pencil vertex painting tools @@ -1940,7 +1940,6 @@ class VIEW3D_PT_tools_grease_pencil_brush_vertex_color(View3DPanel, Panel): ts = context.tool_settings settings = ts.gpencil_vertex_paint brush = settings.brush - gp_settings = brush.gpencil_settings col = layout.column() |