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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user