[Bf-blender-cvs] [45c5d7a6593] greasepencil-object: Disable missing flag
Antonio Vazquez
noreply at git.blender.org
Mon Jun 4 20:12:14 CEST 2018
Commit: 45c5d7a6593b65db4c963c71f3504b25fe921a2d
Author: Antonio Vazquez
Date: Mon Jun 4 20:08:56 2018 +0200
Branches: greasepencil-object
https://developer.blender.org/rB45c5d7a6593b65db4c963c71f3504b25fe921a2d
Disable missing flag
The WEIGHT flag must be disable too.
===================================================================
M source/blender/editors/gpencil/gpencil_utils.c
===================================================================
diff --git a/source/blender/editors/gpencil/gpencil_utils.c b/source/blender/editors/gpencil/gpencil_utils.c
index 676c9205bd5..9516ae2daa3 100644
--- a/source/blender/editors/gpencil/gpencil_utils.c
+++ b/source/blender/editors/gpencil/gpencil_utils.c
@@ -1585,6 +1585,7 @@ void ED_gpencil_setup_modes(bContext *C, bGPdata *gpd, int newmode)
gpd->flag &= ~GP_DATA_STROKE_EDITMODE;
gpd->flag &= ~GP_DATA_STROKE_PAINTMODE;
gpd->flag &= ~GP_DATA_STROKE_SCULPTMODE;
+ gpd->flag &= ~GP_DATA_STROKE_WEIGHTMODE;
ED_gpencil_toggle_brush_cursor(C, false, NULL);
break;
}
More information about the Bf-blender-cvs
mailing list