diff options
author | Ton Roosendaal <ton@blender.org> | 2006-06-11 15:01:30 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-06-11 15:01:30 +0400 |
commit | 11c70ed57f4be62409d658dea6902ec73f9de406 (patch) | |
tree | e963f2ab9ad7ac7745cc086a9a1c073d705b2ffa /source/blender/src/sequence.c | |
parent | 7c8008da58a4d551217ea4ae4d56df54c9f1e285 (diff) |
Bugfix #4308
ANIM render with "Do Sequence" set, without sequence strips, crashed.
Addded empty black image allocation.
Diffstat (limited to 'source/blender/src/sequence.c')
-rw-r--r-- | source/blender/src/sequence.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/src/sequence.c b/source/blender/src/sequence.c index a82cc2a11ee..4c61c6ea4a3 100644 --- a/source/blender/src/sequence.c +++ b/source/blender/src/sequence.c @@ -1253,6 +1253,11 @@ void do_render_seq(RenderResult *rr, int cfra) /* While render let's keep all memory available for render (ton) */ free_imbuf_seq_except(cfra); } + else { + /* render result is delivered empty in most cases */ + if (!rr->rect32) + rr->rect32= MEM_callocN(sizeof(int)*rr->rectx*rr->recty, "render_seq rect"); + } G.f &= ~G_PLAYANIM; |