diff options
author | Antonioya <blendergit@gmail.com> | 2018-12-15 11:54:31 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2018-12-15 11:54:31 +0300 |
commit | f9917a8d431f5480d9a5d58dfcf84863911f3bf2 (patch) | |
tree | 38e8c4dd84d00d2ccbe904c0446c265f79c772e4 /release/scripts/startup | |
parent | b73529fafd63d4d8326001482f44e7eb578a5f77 (diff) |
Fix T59396 Grease pencil brush crash
The problem was the brush was not initializated because some code was missing (marked as ToDo)
Diffstat (limited to 'release/scripts/startup')
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d_toolbar.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py index 68d334dfaea..eeb00fe09f8 100644 --- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py +++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py @@ -1485,12 +1485,13 @@ class VIEW3D_PT_tools_grease_pencil_brush(View3DPanel, Panel): col = row.column() brush = context.active_gpencil_brush - gp_settings = brush.gpencil_settings sub = col.column(align=True) sub.operator("gpencil.brush_presets_create", icon='HELP', text="") if brush is not None: + gp_settings = brush.gpencil_settings + # XXX: Items in "sub" currently show up beside the brush selector in a separate column if brush.gpencil_tool == 'ERASE': sub.prop(gp_settings, "use_default_eraser", text="") |