diff options
author | Jacques Lucke <jacques@blender.org> | 2020-09-22 11:42:52 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-09-22 11:43:11 +0300 |
commit | 222ed9f78170116e1739a5cef65d31322d72f507 (patch) | |
tree | ffb9253cf3e307efd8e9859f4a6f42d1937d97e4 | |
parent | ee89106ac12eb77e1d4722b4923247086a3b6c69 (diff) |
Fix T80943: return early when field to visualize is NULL
-rw-r--r-- | source/blender/draw/intern/draw_fluid.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_fluid.c b/source/blender/draw/intern/draw_fluid.c index d9bd94b480e..a21402e6392 100644 --- a/source/blender/draw/intern/draw_fluid.c +++ b/source/blender/draw/intern/draw_fluid.c @@ -316,6 +316,10 @@ static GPUTexture *create_field_texture(FluidDomainSettings *fds, bool single_pr return NULL; } + if (field == NULL) { + return NULL; + } + GPUTexture *tex = create_volume_texture(fds->res, texture_format, data_format, field); swizzle_texture_channel_single(tex); return tex; |