diff options
author | Antonioya <blendergit@gmail.com> | 2019-04-13 10:46:36 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2019-04-13 10:47:43 +0300 |
commit | 28fc9194643578864c051dd46a450ff34ed2a0b4 (patch) | |
tree | f39780c4006365db6934a35476f661f945b1fce7 | |
parent | 73c7aaba226349e93ca4966941f4eb051a94c097 (diff) |
GPencil: Remove script console warning when object is None
-rw-r--r-- | release/scripts/startup/bl_ui/space_topbar.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/space_topbar.py b/release/scripts/startup/bl_ui/space_topbar.py index 25c715e8ae7..2e95ccd6db5 100644 --- a/release/scripts/startup/bl_ui/space_topbar.py +++ b/release/scripts/startup/bl_ui/space_topbar.py @@ -344,7 +344,7 @@ class _draw_left_context_mode: settings = tool_settings.gpencil_paint row.template_ID_preview(settings, "brush", rows=3, cols=8, hide_buttons=True) - if brush.gpencil_tool in {'FILL', 'DRAW'}: + if context.object and brush.gpencil_tool in {'FILL', 'DRAW'}: draw_color_selector() from .properties_paint_common import ( |