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

Maniphest Tasks: T78186

Differential Revision: https://developer.blender.org/D8120
This commit is contained in:
Philipp Oeser 2020-06-25 14:37:22 +02:00 • committed by Jeroen Bakker
parent a994e7a4b9
commit d80a95c2ee

View file

@ -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