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_blur.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_blur.c')
-rw-r--r-- | source/blender/nodes/intern/CMP_nodes/CMP_blur.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source/blender/nodes/intern/CMP_nodes/CMP_blur.c b/source/blender/nodes/intern/CMP_nodes/CMP_blur.c index 4d9f2e31f52..91a04e3128a 100644 --- a/source/blender/nodes/intern/CMP_nodes/CMP_blur.c +++ b/source/blender/nodes/intern/CMP_nodes/CMP_blur.c @@ -579,7 +579,10 @@ static void node_composit_exec_blur(void *data, bNode *node, bNodeStack **in, bN new->yof = img->yof; blur_with_reference(node, new, img, in[1]->data); - + if(node->exec & NODE_BREAK) { + free_compbuf(new); + new= NULL; + } out[0]->data= new; } else { @@ -615,6 +618,10 @@ static void node_composit_exec_blur(void *data, bNode *node, bNodeStack **in, bN gamma_correct_compbuf(new, 1); free_compbuf(gammabuf); } + if(node->exec & NODE_BREAK) { + free_compbuf(new); + new= NULL; + } } out[0]->data= new; } |