Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Borghetti <bdiego@gmail.com>2007-04-18 16:39:04 +0400
committerDiego Borghetti <bdiego@gmail.com>2007-04-18 16:39:04 +0400
commita59f7c08cef1fd4f0ce60463fe93eb53a8dadffa (patch)
treef983e7daf5d85f6b87924863c90306bca23782de /source/blender/nodes/intern/CMP_nodes/CMP_blur.c
parent7767451b2f051ad2283a0ab7a058e009a0111af7 (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.c9
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;
}