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/editors | |
parent | 86ad6837c5b9dd1f61942e8c9644749354d12a02 (diff) |
Applied patch #23379. Does not change existing .blend files and looks
good.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/space_node/drawnode.c | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/source/blender/editors/space_node/drawnode.c b/source/blender/editors/space_node/drawnode.c index c1b888fcf83..a9e5e871669 100644 --- a/source/blender/editors/space_node/drawnode.c +++ b/source/blender/editors/space_node/drawnode.c @@ -707,12 +707,20 @@ static void node_composit_buts_crop(uiLayout *layout, bContext *C, PointerRNA *p uiLayout *col; uiItemR(layout, ptr, "use_crop_size", 0, NULL, 0); - + uiItemR(layout, ptr, "relative", 0, NULL, 0); + col= uiLayoutColumn(layout, 1); - uiItemR(col, ptr, "min_x", 0, "Left", 0); - uiItemR(col, ptr, "max_x", 0, "Right", 0); - uiItemR(col, ptr, "min_y", 0, "Up", 0); - uiItemR(col, ptr, "max_y", 0, "Down", 0); + if (RNA_boolean_get(ptr, "relative")){ + uiItemR(col, ptr, "rel_min_x", 0, "Left", 0); + uiItemR(col, ptr, "rel_max_x", 0, "Right", 0); + uiItemR(col, ptr, "rel_min_y", 0, "Up", 0); + uiItemR(col, ptr, "rel_max_y", 0, "Down", 0); + } else { + uiItemR(col, ptr, "min_x", 0, "Left", 0); + uiItemR(col, ptr, "max_x", 0, "Right", 0); + uiItemR(col, ptr, "min_y", 0, "Up", 0); + uiItemR(col, ptr, "max_y", 0, "Down", 0); + } } static void node_composit_buts_splitviewer(uiLayout *layout, bContext *C, PointerRNA *ptr) |