Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Vazquez <blendergit@gmail.com>2019-09-23 13:55:16 +0300
committerAntonio Vazquez <blendergit@gmail.com>2019-09-23 13:55:16 +0300
commit8634c4646ead98db1c6a1a76393a77f911b50cab (patch)
tree32914eb353cddb274c99e324cb4e07d620e7c825 /source/blender/editors/gpencil/gpencil_edit.c
parent1d1ef2e79793ab57920f81739bfb3b6b8101fb99 (diff)
GPencil: Use correct comparison for non-bit values
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_edit.c')
-rw-r--r--source/blender/editors/gpencil/gpencil_edit.c2
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) {