diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2019-09-23 13:55:16 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2019-09-23 13:55:16 +0300 |
commit | 8634c4646ead98db1c6a1a76393a77f911b50cab (patch) | |
tree | 32914eb353cddb274c99e324cb4e07d620e7c825 /source/blender/editors/gpencil | |
parent | 1d1ef2e79793ab57920f81739bfb3b6b8101fb99 (diff) |
GPencil: Use correct comparison for non-bit values
Diffstat (limited to 'source/blender/editors/gpencil')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_edit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/gpencil/gpencil_edit.c b/source/blender/editors/gpencil/gpencil_edit.c index 5850d0856e0..2aea1084ad6 100644 --- a/source/blender/editors/gpencil/gpencil_edit.c +++ b/source/blender/editors/gpencil/gpencil_edit.c @@ -249,7 +249,7 @@ static int gpencil_selectmode_toggle_exec(bContext *C, wmOperator *op) ts->gpencil_selectmode_edit = mode; /* If the mode is Stroke, extend selection. */ - if ((ob) && (ts->gpencil_selectmode_edit & GP_SELECTMODE_STROKE)) { + if ((ob) && (ts->gpencil_selectmode_edit == GP_SELECTMODE_STROKE)) { bGPdata *gpd = (bGPdata *)ob->data; /* Extend selection to all points in all selected strokes. */ CTX_DATA_BEGIN (C, bGPDstroke *, gps, editable_gpencil_strokes) { |