diff options
author | Antonioya <blendergit@gmail.com> | 2019-04-18 17:57:41 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2019-04-18 17:59:18 +0300 |
commit | 84d237ee97716a51e46dfbe11ffc2e26c666834a (patch) | |
tree | ff4257a5d2eb27b38d30f18628889d0a7be56641 /release/scripts | |
parent | 364ec17fb3119f738e933f5bdf3d832c39420fbc (diff) |
GPencil: Initialize variable to remove console warning
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d_toolbar.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py index 7c1fa0f9663..7e76701f5b4 100644 --- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py +++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py @@ -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) |