diff options
author | Robert Holcomb <bob_holcomb@hotmail.com> | 2010-08-25 06:18:37 +0400 |
---|---|---|
committer | Robert Holcomb <bob_holcomb@hotmail.com> | 2010-08-25 06:18:37 +0400 |
commit | a42c490a04ff06c4baeb3fb43c96767a17e4d960 (patch) | |
tree | 5435e456d34853a1f4068ad41e957a4cae4fbada /source/blender/nodes/intern/CMP_nodes/CMP_crop.c | |
parent | 86ad6837c5b9dd1f61942e8c9644749354d12a02 (diff) |
Applied patch #23379. Does not change existing .blend files and looks
good.
Diffstat (limited to 'source/blender/nodes/intern/CMP_nodes/CMP_crop.c')
-rw-r--r-- | source/blender/nodes/intern/CMP_nodes/CMP_crop.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source/blender/nodes/intern/CMP_nodes/CMP_crop.c b/source/blender/nodes/intern/CMP_nodes/CMP_crop.c index c2edb3dd52f..dd5ce88bd36 100644 --- a/source/blender/nodes/intern/CMP_nodes/CMP_crop.c +++ b/source/blender/nodes/intern/CMP_nodes/CMP_crop.c @@ -48,7 +48,14 @@ static void node_composit_exec_crop(void *data, bNode *node, bNodeStack **in, bN CompBuf *stackbuf; int x, y; float *srcfp, *outfp; - rcti outputrect; + rcti outputrect; + + if(node->custom2) { + ntxy->x1= cbuf->x* ntxy->fac_x1; + ntxy->x2= cbuf->x* ntxy->fac_x2; + ntxy->y1= cbuf->y* ntxy->fac_y1; + ntxy->y2= cbuf->y* ntxy->fac_y2; + } /* check input image size */ if(cbuf->x <= ntxy->x1 + 1) |