Commit: 57244603dd30dacc2253ff9f74e6a6ef46e466d7
Author: Joshua Leung
Date:   Thu Nov 20 03:55:34 2014 +1300
Branches: GPencil_EditStrokes
https://developer.blender.org/rB57244603dd30dacc2253ff9f74e6a6ef46e466d7

Tweak to stroke editing drawing - Only show stroke points when in editmode

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

M       source/blender/editors/gpencil/drawgpencil.c

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

diff --git a/source/blender/editors/gpencil/drawgpencil.c 
b/source/blender/editors/gpencil/drawgpencil.c
index 8188738..9a356e9 100644
--- a/source/blender/editors/gpencil/drawgpencil.c
+++ b/source/blender/editors/gpencil/drawgpencil.c
@@ -1015,7 +1015,8 @@ static void gp_draw_data(bGPdata *gpd, int offsx, int 
offsy, int winx, int winy,
                 *    as they will have no bearings on what gets edited
                 */
                /* XXX: perhaps we don't want to show these when users are 
drawing... */
-               if ((gpl->flag & GP_LAYER_LOCKED) == 0) {
+               /* XXX: for now, we only show editing info when stroke can be 
edited */
+               if ((gpl->flag & GP_LAYER_LOCKED) == 0 && (gpd->flag & 
GP_DATA_STROKE_EDITMODE)) {
                        gp_draw_strokes_edit(gpf, offsx, offsy, winx, winy, 
dflag, 
                                             (gpl->color[3] < 0.95f) ? 
gpl->color : NULL);
                }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to