Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2016-11-11 16:04:04 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2016-11-11 16:04:04 +0300
commit89c1f9db37cc1becdd437fcfdb1877306cc2b329 (patch)
treea6bf7fd97e3fd1b2bced18aa0ca5371db7352976 /release/scripts/startup/bl_ui
parent9eeca9e7cd37bc792592e72e6671a73b97563b73 (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/scripts/startup/bl_ui')
-rw-r--r--release/scripts/startup/bl_ui/properties_grease_pencil_common.py3
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: ")