[Bf-blender-cvs] [e233ee1c1fb] master: Fix T78186: Dyntopo panel error with tools that dont have a brush

Philipp Oeser noreply at git.blender.org
Tue Jul 7 10:39:15 CEST 2020


Commit: e233ee1c1fb167c69afb0c3f8d0c067bd67d2814
Author: Philipp Oeser
Date:   Thu Jun 25 14:37:22 2020 +0200
Branches: master
https://developer.blender.org/rBe233ee1c1fb167c69afb0c3f8d0c067bd67d2814

Fix T78186: Dyntopo panel error with tools that dont have a brush

Maniphest Tasks: T78186

Differential Revision: https://developer.blender.org/D8120

===================================================================

M	release/scripts/startup/bl_ui/space_view3d_toolbar.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index 549b89938e0..f1358d4dd01 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -737,7 +737,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



More information about the Bf-blender-cvs mailing list