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
Notes:
blender-bot
2023-02-14 06:00:45 +01:00
Referenced by issue #80066, Dyntopo menu disappears after using "box hide" brush in sculpt mode (fixed in 2.90 and 2.91 - request to backport to LTS) Referenced by issue #78186, dyntopo tab disappears when specific brush selected Referenced by issue #77606, Sculptmode - non brush tools [e.g. cloth filter] - NoneType has no attribute brush error with hovering over Dyntopo Referenced by issue #77348, Blender LTS: Maintenance Task 2.83
|
@ -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