diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2020-06-25 15:37:22 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2020-08-26 12:19:26 +0300 |
commit | d80a95c2ee5f85202068be27494deedb255a0856 (patch) | |
tree | daee8a9767962953461932bdeada0ac548b39b3d /release | |
parent | a994e7a4b9c3b3cc7d2dc1967df28f33e506b1a9 (diff) |
Fix T78186: Dyntopo panel error with tools that dont have a brush
Maniphest Tasks: T78186
Differential Revision: https://developer.blender.org/D8120
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d_toolbar.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py index 553726503d9..98609e81741 100644 --- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py +++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py @@ -799,7 +799,8 @@ class VIEW3D_PT_sculpt_dyntopo(Panel, View3DPaintPanel): @classmethod def poll(cls, context): - return (context.sculpt_object and context.tool_settings.sculpt) + paint_settings = cls.paint_settings(context) + return (context.sculpt_object and context.tool_settings.sculpt and paint_settings) def draw_header(self, context): is_popover = self.is_popover |