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.
This commit is contained in:
2007-04-18 12:39:04 +00:00
parent 7767451b2f
commit a59f7c08ce
2 changed files with 12 additions and 2 deletions

View File

@@ -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;
}

View File

@@ -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);
}