GPencil: Initialize variable to remove console warning

This commit is contained in:
Antonio Vazquez 2019-04-18 16:57:41 +02:00
parent 364ec17fb3
commit 84d237ee97
1 changed files with 3 additions and 2 deletions

View File

@ -1732,9 +1732,10 @@ class VIEW3D_PT_tools_grease_pencil_brush_option(View3DPanel, Panel):
ob = context.object
if ob:
ma = ob.active_material
if brush.gpencil_settings.material:
elif brush.gpencil_settings.material:
ma = brush.gpencil_settings.material
else:
ma = None
col.separator()
subcol = col.column(align=True)