diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-11-11 16:04:04 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-11-11 16:04:04 +0300 |
commit | 89c1f9db37cc1becdd437fcfdb1877306cc2b329 (patch) | |
tree | a6bf7fd97e3fd1b2bced18aa0ca5371db7352976 /release | |
parent | 9eeca9e7cd37bc792592e72e6671a73b97563b73 (diff) |
Grease Pencil: Fix python errors opening N panel -> GP with empty VSE
Solves errors, but not sure interface is indeed what users will expect.
Will ask GP team to check on this.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_grease_pencil_common.py | 3 |
1 files changed, 3 insertions, 0 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 bc40932018d..08e07b8ed93 100644 --- a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py +++ b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py @@ -61,6 +61,9 @@ def gpencil_stroke_placement_settings(context, layout): def gpencil_active_brush_settings_simple(context, layout): brush = context.active_gpencil_brush + if brush is None: + layout.label("No Active Brush") + return col = layout.column() col.label("Active Brush: ") |