[Bf-blender-cvs] [2b8e35eeb08] master: Fix T99984: Small GPencil overlay UI bugs in Edit Mode
Antonio Vazquez
noreply at git.blender.org
Tue Jul 26 16:34:31 CEST 2022
Commit: 2b8e35eeb0831164b342b4c2c3d0c6cf9f1c6bcc
Author: Antonio Vazquez
Date: Tue Jul 26 16:32:37 2022 +0200
Branches: master
https://developer.blender.org/rB2b8e35eeb0831164b342b4c2c3d0c6cf9f1c6bcc
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
===================================================================
M release/scripts/startup/bl_ui/space_view3d.py
===================================================================
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'}:
More information about the Bf-blender-cvs
mailing list