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.
This commit is contained in:
Sergey Sharybin 2016-11-11 14:04:04 +01:00
parent 9eeca9e7cd
commit 89c1f9db37
1 changed files with 3 additions and 0 deletions

View File

@ -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: ")