From a59f7c08cef1fd4f0ce60463fe93eb53a8dadffa Mon Sep 17 00:00:00 2001 From: Diego Borghetti Date: Wed, 18 Apr 2007 12:39:04 +0000 Subject: [PATCH] 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. --- source/blender/nodes/intern/CMP_nodes/CMP_blur.c | 9 ++++++++- source/blender/nodes/intern/CMP_nodes/CMP_defocus.c | 5 ++++- 2 files changed, 12 insertions(+), 2 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; } 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); }