diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-11-01 02:57:25 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-11-01 03:17:35 +0300 |
commit | d836adb2757d61a26687d1d89f83dcf9dea88e98 (patch) | |
tree | 9142dced078f3a49055b5066db205a52df068e10 /source/blender/draw | |
parent | 0518577f5d3ad974a75e124b900d4394834d924b (diff) |
Draw Manager: Fix crash when trying to order an empty shading group.
This fix crash when using only the volume output with an alpha blend material
Diffstat (limited to 'source/blender/draw')
-rw-r--r-- | source/blender/draw/intern/draw_manager.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_manager.c b/source/blender/draw/intern/draw_manager.c index 36008099b70..f23bbd3af45 100644 --- a/source/blender/draw/intern/draw_manager.c +++ b/source/blender/draw/intern/draw_manager.c @@ -1406,6 +1406,8 @@ static int pass_shgroup_dist_sort(void *thunk, const void *a, const void *b) call_b = shgrp_b->calls.first; #endif + if (call_a == NULL) return -1; + if (call_b == NULL) return -1; float tmp[3]; sub_v3_v3v3(tmp, zsortdata->origin, call_a->obmat[3]); |