diff options
author | Jeroen Bakker <jeroen@blender.org> | 2021-08-31 14:13:19 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2021-08-31 14:14:26 +0300 |
commit | a7ee49d06555d9151b49ae97bef856a8319be091 (patch) | |
tree | 5b5c8debc2b72c274843ed74d65e5f934722b9ef /source/blender/draw/engines | |
parent | b0cb0a78547582848f5f18f5d5cc85c69f3dbe30 (diff) |
Fix crash in recent commit.
Crash introduced by {rB8e00db42961297facd521139762fe8c42042fc5c}, fixed
with a null check. Object can be null.
Diffstat (limited to 'source/blender/draw/engines')
-rw-r--r-- | source/blender/draw/engines/overlay/overlay_paint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/engines/overlay/overlay_paint.c b/source/blender/draw/engines/overlay/overlay_paint.c index c5f7cdf4f8a..91a25fe16d5 100644 --- a/source/blender/draw/engines/overlay/overlay_paint.c +++ b/source/blender/draw/engines/overlay/overlay_paint.c @@ -57,7 +57,7 @@ static bool paint_object_is_rendered_transparent(View3D *v3d, Object *ob) } /* Check object display types. */ - if (ELEM(ob->dt, OB_WIRE, OB_BOUNDBOX)) { + if (ob && ELEM(ob->dt, OB_WIRE, OB_BOUNDBOX)) { return true; } |