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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2013-04-02 22:19:35 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2013-04-02 22:19:35 +0400
commit902eb76f49a47cc05d6d874bb0f52cee413d33b1 (patch)
treef10d2599d5ab5bece207d660b99bf601c493edeb /source/blender/editors/sculpt_paint/paint_utils.c
parent6ab23d5a0123359b90ab0bccf8c99ad38a23976c (diff)
Fix #34849: crash in operator search menu, due to brush stencil poll
function not checking NULL pointer.
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_utils.c')
-rw-r--r--source/blender/editors/sculpt_paint/paint_utils.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_utils.c b/source/blender/editors/sculpt_paint/paint_utils.c
index 47e20bcc5fb..b54e515bd6d 100644
--- a/source/blender/editors/sculpt_paint/paint_utils.c
+++ b/source/blender/editors/sculpt_paint/paint_utils.c
@@ -381,7 +381,9 @@ void paint_sample_color(const bContext *C, ARegion *ar, int x, int y) /* fron
static int brush_curve_preset_exec(bContext *C, wmOperator *op)
{
Brush *br = paint_brush(paint_get_active_from_context(C));
- BKE_brush_curve_preset(br, RNA_enum_get(op->ptr, "shape"));
+
+ if(br)
+ BKE_brush_curve_preset(br, RNA_enum_get(op->ptr, "shape"));
return OPERATOR_FINISHED;
}