diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-04-16 03:12:52 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-04-16 03:12:52 +0400 |
commit | a1a4631f11e3ab9b37e47e6a27ebe25a968153a9 (patch) | |
tree | 649f4f7ecef10036c6b389f06036fb1bb4bee97f /source | |
parent | f4fe1b8e77e443b899466acd951628a2f68e5049 (diff) |
Fix crash rendering environment maps.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/render/intern/source/render_result.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/render/intern/source/render_result.c b/source/blender/render/intern/source/render_result.c index 751d141a8be..907c7684401 100644 --- a/source/blender/render/intern/source/render_result.c +++ b/source/blender/render/intern/source/render_result.c @@ -539,6 +539,7 @@ RenderResult *render_result_new(Render *re, rcti *partrct, int crop, int savebuf if (srl->passflag & SCE_PASS_TRANSM_COLOR) render_layer_add_pass(rr, rl, 3, SCE_PASS_TRANSM_COLOR); + BKE_freestyle_config_init(&srl->freestyleConfig); } /* sss, previewrender and envmap don't do layers, so we make a default one */ if (rr->layers.first == NULL && !(layername && layername[0])) { @@ -565,7 +566,6 @@ RenderResult *render_result_new(Render *re, rcti *partrct, int crop, int savebuf rl->lay = (1 << 20) - 1; rl->layflag = 0x7FFF; /* solid ztra halo strand */ rl->passflag = SCE_PASS_COMBINED; - BKE_freestyle_config_init(&srl->freestyleConfig); re->r.actlay = 0; } |