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:
parent
19d4e265b6
commit
e233ee1c1f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue