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:
authorAntonioya <blendergit@gmail.com>2018-12-15 11:54:31 +0300
committerAntonioya <blendergit@gmail.com>2018-12-15 11:54:31 +0300
commitf9917a8d431f5480d9a5d58dfcf84863911f3bf2 (patch)
tree38e8c4dd84d00d2ccbe904c0446c265f79c772e4 /source/blender/editors/sculpt_paint/paint_ops.c
parentb73529fafd63d4d8326001482f44e7eb578a5f77 (diff)
Fix T59396 Grease pencil brush crash
The problem was the brush was not initializated because some code was missing (marked as ToDo)
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_ops.c')
-rw-r--r--source/blender/editors/sculpt_paint/paint_ops.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_ops.c b/source/blender/editors/sculpt_paint/paint_ops.c
index ed40a22bd78..80911cf202f 100644
--- a/source/blender/editors/sculpt_paint/paint_ops.c
+++ b/source/blender/editors/sculpt_paint/paint_ops.c
@@ -124,7 +124,8 @@ static int brush_add_gpencil_exec(bContext *C, wmOperator *UNUSED(op))
BKE_paint_brush_set(paint, br);
- /* TODO init grease pencil specific data */
+ /* init grease pencil specific data */
+ BKE_brush_init_gpencil_settings(br);
return OPERATOR_FINISHED;
}