From 28fc9194643578864c051dd46a450ff34ed2a0b4 Mon Sep 17 00:00:00 2001 From: Antonioya Date: Sat, 13 Apr 2019 09:46:36 +0200 Subject: GPencil: Remove script console warning when object is None --- release/scripts/startup/bl_ui/space_topbar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'release/scripts') 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 ( -- cgit v1.2.3