GPencil: Fix unreported missing Sculpt popover menu

The menu with the options was not visible because the tool checked must be the sculpt, not draw.

This was broken in old version, but I cannot determine when or if never worked at expected.
This commit is contained in:
Antonio Vazquez 2022-04-08 18:10:38 +02:00
parent d55a64a4fa
commit 3039b215ba
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ class VIEW3D_HT_tool_header(Header):
elif tool_mode == 'SCULPT_GPENCIL':
if is_valid_context:
brush = context.tool_settings.gpencil_sculpt_paint.brush
tool = brush.gpencil_tool
tool = brush.gpencil_sculpt_tool
if tool in {'SMOOTH', 'RANDOMIZE'}:
layout.popover("VIEW3D_PT_tools_grease_pencil_sculpt_options")
layout.popover("VIEW3D_PT_tools_grease_pencil_sculpt_appearance")