diff options
author | Jeroen Bakker <j.bakker@atmind.nl> | 2012-07-19 15:05:18 +0400 |
---|---|---|
committer | Jeroen Bakker <j.bakker@atmind.nl> | 2012-07-19 15:05:18 +0400 |
commit | a56f4fee38e17d05964941a5edc2850c217309d7 (patch) | |
tree | e4430faf6ff15aa037f6d8fb1ede5f0afac6a376 /source/blender/editors/space_node | |
parent | 9c8edae7d4ef799b19f6487feb21ce7fbcf5ee07 (diff) |
Fix for
* [#32040] size-input of a blur-node is uniform for the whole picture
* [#32062] Blur node Size input is not working with
* [#32140] Blur Node using a greyscale input as size multiplier fails
to work
Node now has a new option (new compositor cannot detect if the connected
part is a single value, or an image connected).
With this option the use of a reference image to multiply the size of
the blur per pixel can be enabled/disabled.
Regards,
Jeroen
- At Mind -
Diffstat (limited to 'source/blender/editors/space_node')
-rw-r--r-- | source/blender/editors/space_node/drawnode.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/source/blender/editors/space_node/drawnode.c b/source/blender/editors/space_node/drawnode.c index 87a07407ee6..134b2d6fd99 100644 --- a/source/blender/editors/space_node/drawnode.c +++ b/source/blender/editors/space_node/drawnode.c @@ -1528,12 +1528,19 @@ static void node_composit_buts_renderlayers(uiLayout *layout, bContext *C, Point static void node_composit_buts_blur(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) { uiLayout *col, *row; + int reference; + int filter; col = uiLayoutColumn(layout, FALSE); - + filter = RNA_enum_get(ptr, "filter_type"); + reference = RNA_boolean_get(ptr, "use_reference"); + uiItemR(col, ptr, "filter_type", 0, "", ICON_NONE); - if (RNA_enum_get(ptr, "filter_type") != R_FILTER_FAST_GAUSS) { - uiItemR(col, ptr, "use_bokeh", 0, NULL, ICON_NONE); + if (filter != R_FILTER_FAST_GAUSS) { + uiItemR(col, ptr, "use_reference", 0, NULL, ICON_NONE); + if (!reference) { + uiItemR(col, ptr, "use_bokeh", 0, NULL, ICON_NONE); + } uiItemR(col, ptr, "use_gamma_correction", 0, NULL, ICON_NONE); } |