diff options
author | Brecht Van Lommel <brecht@blender.org> | 2021-04-08 13:28:41 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2021-04-08 14:13:07 +0300 |
commit | d244067d12442709bf080b3f9449e0b62d4b704c (patch) | |
tree | 3a7552b4dd61989bf354cdeefcf42ecba2656be1 /source/blender/render/intern/pipeline.c | |
parent | 76cc8e8436875c1c700d6a7d29d3cffeddc04c7d (diff) |
Fix T87291: assert on exit with preview render
Don't keep around persistent data in this case.
Diffstat (limited to 'source/blender/render/intern/pipeline.c')
-rw-r--r-- | source/blender/render/intern/pipeline.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/render/intern/pipeline.c b/source/blender/render/intern/pipeline.c index 5a2ac6ed348..1fcfac8c9dd 100644 --- a/source/blender/render/intern/pipeline.c +++ b/source/blender/render/intern/pipeline.c @@ -2674,6 +2674,12 @@ void RE_PreviewRender(Render *re, Main *bmain, Scene *sce) RE_SetCamera(re, camera); do_render_3d(re); + + /* No persistent data for preview render. */ + if (re->engine) { + RE_engine_free(re->engine); + re->engine = NULL; + } } void RE_CleanAfterRender(Render *re) |