Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Vazquez <blendergit@gmail.com>2022-06-15 14:30:14 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2022-06-22 13:09:07 +0300
commit2c357c226870c57ec381bc64942e1e4b6355db1f (patch)
treeeaa465b9fe1a0cdaa72a935f079d1905b8d2a91f
parenta0a793c9df47a7b5a1be793bfc01f041c3f3a2ad (diff)
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
-rw-r--r--release/scripts/startup/bl_ui/properties_paint_common.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/properties_paint_common.py b/release/scripts/startup/bl_ui/properties_paint_common.py
index 9a116aa1717..320b5f60911 100644
--- a/release/scripts/startup/bl_ui/properties_paint_common.py
+++ b/release/scripts/startup/bl_ui/properties_paint_common.py
@@ -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)