[Bf-blender-cvs] [96a73156345] temp-lanpr-cleanup: GPencil: Multiframe Show only Edit lines was inverted

Antonio Vazquez noreply at git.blender.org
Wed Sep 25 03:49:47 CEST 2019


Commit: 96a7315634512d5b4fbaf37ac0f28ae77ccf8116
Author: Antonio Vazquez
Date:   Fri Sep 20 15:56:46 2019 +0200
Branches: temp-lanpr-cleanup
https://developer.blender.org/rB96a7315634512d5b4fbaf37ac0f28ae77ccf8116

GPencil: Multiframe Show only Edit lines was inverted

The flag was working in the oposite mode.

Related to T70116

===================================================================

M	source/blender/draw/engines/gpencil/gpencil_draw_utils.c

===================================================================

diff --git a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c
index 4375e9fb3ad..abc76d09719 100644
--- a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c
+++ b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c
@@ -1156,7 +1156,8 @@ static void gpencil_draw_strokes(GpencilBatchCache *cache,
   const bool playing = stl->storage->is_playing;
   const bool is_render = (bool)stl->storage->is_render;
   const bool is_mat_preview = (bool)stl->storage->is_mat_preview;
-  const bool overlay_multiedit = v3d != NULL ? (v3d->gp_flag & V3D_GP_SHOW_MULTIEDIT_LINES) : true;
+  const bool overlay_multiedit = v3d != NULL ? !(v3d->gp_flag & V3D_GP_SHOW_MULTIEDIT_LINES) :
+                                               true;
 
   /* Get evaluation context */
   /* NOTE: We must check if C is valid, otherwise we get crashes when trying to save files



More information about the Bf-blender-cvs mailing list