[Bf-blender-cvs] [9ef589c] GPencil_EditStrokes: Locked GP Layers cannot be edited at all - Not even for selection

Joshua Leung noreply at git.blender.org
Fri Oct 10 12:26:05 CEST 2014


Commit: 9ef589cbcc6609ed93804b6bb0677cc896e32d36
Author: Joshua Leung
Date:   Fri Oct 10 13:30:28 2014 +1300
Branches: GPencil_EditStrokes
https://developer.blender.org/rB9ef589cbcc6609ed93804b6bb0677cc896e32d36

Locked GP Layers cannot be edited at all - Not even for selection

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

M	source/blender/editors/gpencil/gpencil_intern.h

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

diff --git a/source/blender/editors/gpencil/gpencil_intern.h b/source/blender/editors/gpencil/gpencil_intern.h
index 8b32b97..2f91bff 100644
--- a/source/blender/editors/gpencil/gpencil_intern.h
+++ b/source/blender/editors/gpencil/gpencil_intern.h
@@ -83,7 +83,9 @@ void gp_point_to_xy(struct ARegion *ar, struct View2D *v2d, struct rctf *subrect
 	{                                                                   \
 		bGPDlayer *gpl;                                                 \
 		for (gpl = (gpd)->layers.first; gpl; gpl = gpl->next) {         \
-			if (!(gpl->flag & GP_LAYER_HIDE) && (gpl->actframe)) {      \
+			if (!(gpl->flag & (GP_LAYER_HIDE | GP_LAYER_LOCKED)) &&     \
+			    (gpl->actframe))                                        \
+			{                                                           \
 				bGPDframe *gpf = gpl->actframe;                         \
 				bGPDstroke *gps;                                        \
 				for (gps = gpf->strokes.first; gps; gps = gps->next) {




More information about the Bf-blender-cvs mailing list