GPencil: Avoid console warnings when no Sculpt brush selected
If the brush is deleted, the panel must not be filled. To recreate the missing Brush is necessary to use `Reset All` This fix part of T98904
This commit is contained in:
parent
a0a793c9df
commit
2c357c2268
Notes:
blender-bot
2023-02-14 07:47:59 +01:00
Referenced by issue #98661, 3.2: Potential candidates for corrective releases
|
@ -1296,6 +1296,8 @@ def brush_basic_gpencil_paint_settings(layout, context, brush, *, compact=False)
|
|||
|
||||
def brush_basic_gpencil_sculpt_settings(layout, _context, brush, *, compact=False):
|
||||
gp_settings = brush.gpencil_settings
|
||||
if gp_settings is None:
|
||||
return
|
||||
tool = brush.gpencil_sculpt_tool
|
||||
|
||||
row = layout.row(align=True)
|
||||
|
|
Loading…
Reference in New Issue