diff options
author | Antonioya <blendergit@gmail.com> | 2018-10-08 11:32:41 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2018-10-08 11:32:41 +0300 |
commit | d12e7818104d01af2bec39cec430456a32d6b69c (patch) | |
tree | acc33715dd8f2b6cbfd8c1d6f00633316c3d6c12 /release/scripts/startup/bl_ui | |
parent | 7d38654ecd369e494473864adbb3305f3ef6cb63 (diff) |
Fix T57083: Grease Pencil / Texture Paint Crash in 2.8
The brush of texture paint hadn't gp_icon
Diffstat (limited to 'release/scripts/startup/bl_ui')
-rw-r--r-- | release/scripts/startup/bl_ui/space_toolsystem_toolbar.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py index 01e9ac33491..601224af84b 100644 --- a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py +++ b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py @@ -65,7 +65,7 @@ def generate_from_brushes_ex( for brush_type in brush_category_layout: for brush in context.blend_data.brushes: - if getattr(brush, brush_test_attr) and brush.gpencil_settings.gp_icon == brush_type[0]: + if brush.gpencil_settings and getattr(brush, brush_test_attr) and brush.gpencil_settings.gp_icon == brush_type[0]: category = brush_type[0] name = brush.name text = name |