Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonioya <blendergit@gmail.com>2019-04-13 10:46:36 +0300
committerAntonioya <blendergit@gmail.com>2019-04-13 10:47:43 +0300
commit28fc9194643578864c051dd46a450ff34ed2a0b4 (patch)
treef39780c4006365db6934a35476f661f945b1fce7 /release/scripts
parent73c7aaba226349e93ca4966941f4eb051a94c097 (diff)
GPencil: Remove script console warning when object is None
Diffstat (limited to 'release/scripts')
-rw-r--r--release/scripts/startup/bl_ui/space_topbar.py2
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 (