Commit: fdff148b6b81fc46c537833f4078fde455b50125 Author: Antonio Vazquez Date: Tue Feb 4 09:08:35 2020 +0100 Branches: greasepencil-refactor https://developer.blender.org/rBfdff148b6b81fc46c537833f4078fde455b50125
GPencil: Fix variable out of scope =================================================================== M source/blender/editors/gpencil/gpencil_data.c =================================================================== diff --git a/source/blender/editors/gpencil/gpencil_data.c b/source/blender/editors/gpencil/gpencil_data.c index e0da0c30790..6bc009bc683 100644 --- a/source/blender/editors/gpencil/gpencil_data.c +++ b/source/blender/editors/gpencil/gpencil_data.c @@ -1803,9 +1803,9 @@ static int gp_brush_reset_all_exec(bContext *C, wmOperator *UNUSED(op)) break; } + char tool = '0'; if (paint) { Brush *brush_active = paint->brush; - char tool = '0'; if (brush_active) { switch (mode) { case CTX_MODE_PAINT_GPENCIL: { _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org https://lists.blender.org/mailman/listinfo/bf-blender-cvs