[Bf-blender-cvs] [37fa8b0cf9e] master: Fix T62223: Particle select tools also show brush settings
Campbell Barton
noreply at git.blender.org
Wed Mar 6 11:33:14 CET 2019
Commit: 37fa8b0cf9e4ba0e21a4d807db79841eca1a1e08
Author: Campbell Barton
Date: Wed Mar 6 21:28:41 2019 +1100
Branches: master
https://developer.blender.org/rB37fa8b0cf9e4ba0e21a4d807db79841eca1a1e08
Fix T62223: Particle select tools also show brush settings
===================================================================
M release/scripts/startup/bl_ui/space_topbar.py
===================================================================
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
More information about the Bf-blender-cvs
mailing list