Fix T94506: Crash in Compositing

This commit is contained in:
Sergey Sharybin 2022-01-05 12:31:03 +01:00 committed by Philipp Oeser
parent 7d26cf01f7
commit ed397ff507
Notes: blender-bot 2023-02-14 00:20:19 +01:00
Referenced by issue #94506, Crash in Compositing
Referenced by issue #93479, 3.0 Potential candidates for corrective releases
1 changed files with 6 additions and 0 deletions

View File

@ -477,6 +477,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)) {