diff options
author | Diego Borghetti <bdiego@gmail.com> | 2007-04-18 16:39:04 +0400 |
---|---|---|
committer | Diego Borghetti <bdiego@gmail.com> | 2007-04-18 16:39:04 +0400 |
commit | a59f7c08cef1fd4f0ce60463fe93eb53a8dadffa (patch) | |
tree | f983e7daf5d85f6b87924863c90306bca23782de /source/blender/nodes/intern/CMP_nodes/CMP_defocus.c | |
parent | 7767451b2f051ad2283a0ab7a058e009a0111af7 (diff) |
When press ESC in Blur or Defocus node the output buffer is incomplete.
This cleanup the output buffer to execute the node again until it's complete.
Diffstat (limited to 'source/blender/nodes/intern/CMP_nodes/CMP_defocus.c')
-rw-r--r-- | source/blender/nodes/intern/CMP_nodes/CMP_defocus.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/nodes/intern/CMP_nodes/CMP_defocus.c b/source/blender/nodes/intern/CMP_nodes/CMP_defocus.c index 2573639b84f..db663c38215 100644 --- a/source/blender/nodes/intern/CMP_nodes/CMP_defocus.c +++ b/source/blender/nodes/intern/CMP_nodes/CMP_defocus.c @@ -791,7 +791,10 @@ static void node_composit_exec_defocus(void *data, bNode *node, bNodeStack **in, gamma_correct_compbuf(new, 1); free_compbuf(old); } - + if(node->exec & NODE_BREAK) { + free_compbuf(new); + new= NULL; + } out[0]->data = new; if (zbuf_use && (zbuf_use != zbuf)) free_compbuf(zbuf_use); } |