diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-07-31 14:06:08 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-07-31 14:31:04 +0300 |
commit | c1185f3d0dbbb51dea17cc2ac759776365927738 (patch) | |
tree | d5836ab0496a6dbbdb0818b66781185965b68352 /release/scripts/startup/bl_ui/space_view3d_toolbar.py | |
parent | c7e1d067a5ce3ce9803cce5db6ac25f9692a7472 (diff) |
Cleanup: pep8, windows line endings
Diffstat (limited to 'release/scripts/startup/bl_ui/space_view3d_toolbar.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d_toolbar.py | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py index 70d8c4089d3..ceb0f244bac 100644 --- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py +++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py @@ -20,16 +20,16 @@ import bpy from bpy.types import Menu, Panel, UIList from .properties_grease_pencil_common import ( - GreasePencilStrokeEditPanel, - GreasePencilStrokeSculptPanel, - GreasePencilAppearancePanel, - ) + GreasePencilStrokeEditPanel, + GreasePencilStrokeSculptPanel, + GreasePencilAppearancePanel, +) from .properties_paint_common import ( - UnifiedPaintPanel, - brush_texture_settings, - brush_texpaint_common, - brush_mask_texture_settings, - ) + UnifiedPaintPanel, + brush_texture_settings, + brush_texpaint_common, + brush_mask_texture_settings, +) from bl_operators.presets import PresetMenu @@ -69,9 +69,13 @@ def draw_vpaint_symmetry(layout, vpaint): col.prop(vpaint, "radial_symmetry", text="Radial") # Most of these panels should not be visible in GP edit modes + + def is_not_gpencil_edit_mode(context): - is_gpmode = context.active_object and \ - context.active_object.mode in {'GPENCIL_EDIT', 'GPENCIL_PAINT', 'GPENCIL_SCULPT', 'GPENCIL_WEIGHT'} + is_gpmode = ( + context.active_object and + context.active_object.mode in {'GPENCIL_EDIT', 'GPENCIL_PAINT', 'GPENCIL_SCULPT', 'GPENCIL_WEIGHT'} + ) return not is_gpmode |