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:
authorCampbell Barton <ideasman42@gmail.com>2019-03-06 13:28:41 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-03-06 13:28:41 +0300
commit37fa8b0cf9e4ba0e21a4d807db79841eca1a1e08 (patch)
tree7370bb6b27b15ed60536f2b8d79898c285d0a255 /release
parentce8d6afb63732771677eb54720903fc8a018a1bf (diff)
Fix T62223: Particle select tools also show brush settings
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_topbar.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_topbar.py b/release/scripts/startup/bl_ui/space_topbar.py
index 20e090f9deb..44f16e428c4 100644
--- a/release/scripts/startup/bl_ui/space_topbar.py
+++ b/release/scripts/startup/bl_ui/space_topbar.py
@@ -396,6 +396,9 @@ class _draw_left_context_mode:
@staticmethod
def PARTICLE(context, layout, tool):
+ if (tool is None) or (not tool.has_datablock):
+ return
+
# See: 'VIEW3D_PT_tools_brush', basically a duplicate
settings = context.tool_settings.particle_edit
brush = settings.brush