From d80a95c2ee5f85202068be27494deedb255a0856 Mon Sep 17 00:00:00 2001 From: Philipp Oeser Date: Thu, 25 Jun 2020 14:37:22 +0200 Subject: Fix T78186: Dyntopo panel error with tools that dont have a brush Maniphest Tasks: T78186 Differential Revision: https://developer.blender.org/D8120 --- release/scripts/startup/bl_ui/space_view3d_toolbar.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'release/scripts') 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 -- cgit v1.2.3