From bb1e794d5800b450b53161e9cd9a682c2d6816b1 Mon Sep 17 00:00:00 2001 From: Robert Guetzkow Date: Mon, 27 Apr 2020 16:43:35 +1000 Subject: Fix T72476: Crash when drag & drop Color in the Image Editor --- source/blender/editors/sculpt_paint/paint_image_2d.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/sculpt_paint/paint_image_2d.c') diff --git a/source/blender/editors/sculpt_paint/paint_image_2d.c b/source/blender/editors/sculpt_paint/paint_image_2d.c index 3485941d3df..16ccfaf8286 100644 --- a/source/blender/editors/sculpt_paint/paint_image_2d.c +++ b/source/blender/editors/sculpt_paint/paint_image_2d.c @@ -1894,7 +1894,7 @@ void paint_2d_bucket_fill(const bContext *C, int x_px, y_px; uint color_b; float color_f[4]; - float strength = br ? BKE_brush_alpha_get(s->scene, br) : 1.0f; + float strength = (s && br) ? BKE_brush_alpha_get(s->scene, br) : 1.0f; bool do_float; -- cgit v1.2.3