diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2022-07-26 17:32:37 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2022-07-26 17:34:27 +0300 |
commit | 2b8e35eeb0831164b342b4c2c3d0c6cf9f1c6bcc (patch) | |
tree | 4467e59bac6a2f2f14b542ecf572916e2a8ff9a9 /release | |
parent | 1998269b109f65373336087da7f9751a3c3317f3 (diff) |
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: 203e7ba3320e7ed978ec094efa0c1b22137fb12a
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index 49a1a115edf..8ebd11971ea 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -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'}: |