diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-12-16 06:29:03 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-12-16 06:54:32 +0300 |
commit | 165afb3ad097a8e89ab3b8547b7e947029a23fe2 (patch) | |
tree | 91b482bd2ea360c4af67b2d4e2154c09e01a72b4 /release/scripts/startup/bl_ui/properties_grease_pencil_common.py | |
parent | 31ac2e292e5fc5d4d85d00d97645bfcb9cd4e6c2 (diff) |
Cleanup: pep8, unused vars, line length
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_grease_pencil_common.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_grease_pencil_common.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py index b97571e4547..de08713c3e3 100644 --- a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py +++ b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py @@ -160,6 +160,7 @@ class GreasePencilSculptOptionsPanel: layout.prop(settings, "use_edit_uv", text="Affect UV") + # GP Object Tool Settings class GreasePencilDisplayPanel: bl_label = "Brush Tip" @@ -175,9 +176,11 @@ class GreasePencilDisplayPanel: else: # GP Sculpt and Weight Paint always have Brush Tip panel. return True + return False def draw_header(self, context): - if self.is_popover: return + if self.is_popover: + return if context.mode == 'PAINT_GPENCIL': brush = context.tool_settings.gpencil_paint.brush @@ -506,7 +509,7 @@ class GPENCIL_MT_move_to_layer(Menu): gpl_active = context.active_gpencil_layer tot_layers = len(gpd.layers) i = tot_layers - 1 - while(i >= 0): + while i >= 0: gpl = gpd.layers[i] if gpl.info == gpl_active.info: icon = 'GREASEPENCIL' @@ -716,12 +719,11 @@ class GreasePencilToolsPanel: bl_options = {'DEFAULT_CLOSED'} @classmethod - def poll(cls, context): + def poll(cls, _context): # XXX - disabled in 2.8 branch. + # return (context.gpencil_data is not None) return False - return (context.gpencil_data is not None) - def draw(self, context): layout = self.layout |