diff options
author | Juho Vepsalainen <bebraw@gmail.com> | 2007-10-29 17:37:19 +0300 |
---|---|---|
committer | Juho Vepsalainen <bebraw@gmail.com> | 2007-10-29 17:37:19 +0300 |
commit | d6db819a8366c515b30378b46a77f7341fc9fc67 (patch) | |
tree | da09f318128c817c6335ebe5f026b0e36be6d60e /source/blender/nodes/CMP_node.h | |
parent | 8a3f92693843445c877f14e08a25394e720519fa (diff) |
Crop Compositing Node:
This commit adds a new node, crop, to the compositor. This node can be used to
crop input image. It has two modes of operation. It can either crop image
size (Crop Image Size option) or crop while retaining original size of the
image. This latter mode can be used to preview the crop.
Use X1, Y1, X2, Y2 controls to manage the area to be cropped.
Note that I added a check for image preview min and max values to node_update.
This is because it could give inappropriate values in certain cases when
Crop Image Size option was toggled (values such as x1=0, y1=0, x2=60, y2=0 would
result in eternal loop due to bad min and max (min bigger than max!)). The check
makes sure that min and max values are always valid.
Diffstat (limited to 'source/blender/nodes/CMP_node.h')
-rw-r--r-- | source/blender/nodes/CMP_node.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/nodes/CMP_node.h b/source/blender/nodes/CMP_node.h index 14cb7b2f2ae..4b7e721ca57 100644 --- a/source/blender/nodes/CMP_node.h +++ b/source/blender/nodes/CMP_node.h @@ -94,6 +94,7 @@ extern bNodeType cmp_node_translate; extern bNodeType cmp_node_rotate; extern bNodeType cmp_node_scale; extern bNodeType cmp_node_flip; +extern bNodeType cmp_node_crop; extern bNodeType cmp_node_displace; extern bNodeType cmp_node_mapuv; |