diff options
author | Robert Guetzkow <rjg> | 2020-04-27 09:43:35 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-04-27 09:44:47 +0300 |
commit | bb1e794d5800b450b53161e9cd9a682c2d6816b1 (patch) | |
tree | 9950c9cd72dece7cd12029c3409245aa0bc1eda8 /source/blender/editors/sculpt_paint/paint_image_2d.c | |
parent | d0d16eb7d347d26c5e26b3503e4852a6265858d8 (diff) |
Fix T72476: Crash when drag & drop Color in the Image Editor
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_image_2d.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_image_2d.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |