diff options
author | Sergey Sharybin <sergey@blender.org> | 2022-01-05 14:31:03 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey@blender.org> | 2022-01-05 14:31:37 +0300 |
commit | 924d2b8df6017ab35dbd98610a825e9fdcce2991 (patch) | |
tree | c635f7e2727e5530e3a6cae14b9a2a1d0740e855 /source/blender/render/intern | |
parent | d960c78693368b34c88eb2cf56d038464d0ed808 (diff) |
Fix T94506: Crash in Compositing
Diffstat (limited to 'source/blender/render/intern')
-rw-r--r-- | source/blender/render/intern/render_result.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/render/intern/render_result.c b/source/blender/render/intern/render_result.c index a21351539f6..5455b2d883a 100644 --- a/source/blender/render/intern/render_result.c +++ b/source/blender/render/intern/render_result.c @@ -470,6 +470,12 @@ RenderResult *render_result_new(Render *re, void render_result_passes_allocated_ensure(RenderResult *rr) { + if (rr == NULL) { + /* Happens when the result was not yet allocated for the current scene or slot configuration. + */ + return; + } + LISTBASE_FOREACH (RenderLayer *, rl, &rr->layers) { LISTBASE_FOREACH (RenderPass *, rp, &rl->passes) { if (rl->exrhandle != NULL && !STREQ(rp->name, RE_PASSNAME_COMBINED)) { |