[Bf-blender-cvs] [ca12d75821b] greasepencil-object: GPencil: Hide Edit lines in Vertex Paint mode
Antonio Vazquez
noreply at git.blender.org
Tue Nov 12 17:16:02 CET 2019
Commit: ca12d75821b1bbd984ecbf2f1c56a8a83cf1bfb1
Author: Antonio Vazquez
Date: Tue Nov 12 17:15:50 2019 +0100
Branches: greasepencil-object
https://developer.blender.org/rBca12d75821b1bbd984ecbf2f1c56a8a83cf1bfb1
GPencil: Hide Edit lines in Vertex Paint mode
===================================================================
M release/scripts/startup/bl_ui/space_view3d.py
M source/blender/draw/engines/gpencil/gpencil_draw_utils.c
===================================================================
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index 78194ec9744..083ef85d9a9 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -6353,9 +6353,11 @@ class VIEW3D_PT_overlay_gpencil_options(Panel):
sub.prop(overlay, "gpencil_paper_opacity", text="Fade Objects", slider=True)
sub.prop(overlay, "use_gpencil_fade_objects", text="", icon='OUTLINER_OB_GREASEPENCIL')
- if context.object.mode in {'EDIT_GPENCIL', 'SCULPT_GPENCIL', 'WEIGHT_GPENCIL', 'VERTEX_GPENCIL'}:
+ if context.object.mode in {'EDIT_GPENCIL', 'SCULPT_GPENCIL', 'WEIGHT_GPENCIL'}:
layout.prop(overlay, "use_gpencil_edit_lines", text="Edit Lines")
layout.prop(overlay, "use_gpencil_multiedit_line_only", text="Show Edit Lines only in multiframe")
+
+ if context.object.mode in {'EDIT_GPENCIL', 'SCULPT_GPENCIL', 'WEIGHT_GPENCIL', 'VERTEX_GPENCIL'}:
layout.prop(overlay, "vertex_opacity", text="Vertex Opacity", slider=True)
if context.object.mode in {'PAINT_GPENCIL', 'EDIT_GPENCIL', 'SCULPT_GPENCIL', 'VERTEX_GPENCIL'}:
diff --git a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c
index 7ebfd6fc44a..21c403a3d21 100644
--- a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c
+++ b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c
@@ -1188,7 +1188,7 @@ static void gpencil_add_editpoints_vertexdata(GpencilBatchCache *cache,
if (cache->is_dirty) {
if ((obact == ob) && (is_overlay) && (v3d->gp_flag & V3D_GP_SHOW_EDIT_LINES) &&
- (gps->totpoints > 1)) {
+ (gps->totpoints > 1) && (!is_vertex_paint)) {
/* line of the original stroke */
gpencil_get_edlin_geom(&cache->b_edlin, gps, edit_alpha, hide_select);
More information about the Bf-blender-cvs
mailing list