diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2020-06-17 23:41:43 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2020-06-25 10:32:55 +0300 |
commit | 58533aca4d61fdf91b65c98499adea450e1818ad (patch) | |
tree | 56c125074fd7082c289abd82588610cc8c8e21bc /release | |
parent | 5f01048dcb9a146f2ffc6273f18c5d0553b3f6f1 (diff) |
GPencil: Fix unreported Vertex Opacity Overlay not working
This values was not working because was removed by error in refactor.
Reviewed By: mendio, fclem
Differential Revision: https://developer.blender.org/D8061
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index bb67dc085b1..fa59c5a8008 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -6768,7 +6768,10 @@ class VIEW3D_PT_overlay_gpencil_options(Panel): if context.object.mode in {'PAINT_GPENCIL', 'VERTEX_GPENCIL'}: layout.label(text="Vertex Paint") - layout.prop(overlay, "gpencil_vertex_paint_opacity", text="Opacity", slider=True) + row = layout.row() + shading = VIEW3D_PT_shading.get_shading(context) + row.enabled = shading.type not in {'WIREFRAME', 'RENDERED'} + row.prop(overlay, "gpencil_vertex_paint_opacity", text="Opacity", slider=True) class VIEW3D_PT_quad_view(Panel): |