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
parent 19d4e265b6
commit e233ee1c1f
1 changed files with 2 additions and 1 deletions

View File

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