Fix T99984: Small GPencil overlay UI bugs in Edit Mode

This commit fixes the opacity for curves hiding the option.

Actually, the curve points and handles drawing is using the same code that mesh curves and the opacity is not supported. While this feature will be added for mesh curves and gpencil, now it's better to hide this option.

Reviewed: Matias Mendiola

Note: The handle problem reported in this task was fixed in  a separated commit: 203e7ba332
This commit is contained in:
Antonio Vazquez 2022-07-26 16:32:37 +02:00
parent 1998269b10
commit 2b8e35eeb0
Notes: blender-bot 2023-02-14 06:45:14 +01:00
Referenced by issue #99984, GPencil: Small overlay UI bugs in Edit Mode
1 changed files with 5 additions and 6 deletions

View File

@ -7064,18 +7064,17 @@ class VIEW3D_PT_overlay_gpencil_options(Panel):
col.prop(overlay, "use_gpencil_multiedit_line_only", text="Only in Multiframe")
if context.object.mode == 'EDIT_GPENCIL':
gpd = context.object.data
split = layout.split()
col = split.column()
col.prop(overlay, "use_gpencil_show_directions")
col = split.column()
col.prop(overlay, "use_gpencil_show_material_name", text="Material Name")
layout.prop(overlay, "vertex_opacity", text="Vertex Opacity", slider=True)
# Handles for Curve Edit
if context.object.mode == 'EDIT_GPENCIL':
gpd = context.object.data
if gpd.use_curve_edit:
if not gpd.use_curve_edit:
layout.prop(overlay, "vertex_opacity", text="Vertex Opacity", slider=True)
else:
# Handles for Curve Edit
layout.prop(overlay, "display_handle", text="Handles")
if context.object.mode in {'PAINT_GPENCIL', 'VERTEX_GPENCIL'}: