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/makesrna | |
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/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_nodetree.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_nodetree.c b/source/blender/makesrna/intern/rna_nodetree.c index a72059063fd..055c8dcbebb 100644 --- a/source/blender/makesrna/intern/rna_nodetree.c +++ b/source/blender/makesrna/intern/rna_nodetree.c @@ -1713,6 +1713,11 @@ static void def_cmp_blur(StructRNA *srna) {0, NULL, 0, NULL, NULL} }; + prop = RNA_def_property(srna, "use_reference", PROP_BOOLEAN, PROP_NONE); + RNA_def_property_boolean_sdna(prop, NULL, "custom1", CMP_NODEFLAG_BLUR_REFERENCE); + RNA_def_property_ui_text(prop, "Reference", "Use size socket as a reference image"); + RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); + RNA_def_struct_sdna_from(srna, "NodeBlurData", "storage"); prop = RNA_def_property(srna, "size_x", PROP_INT, PROP_NONE); @@ -1771,7 +1776,6 @@ static void def_cmp_blur(StructRNA *srna) RNA_def_property_boolean_sdna(prop, NULL, "gamma", 1); RNA_def_property_ui_text(prop, "Gamma", "Apply filter on gamma corrected values"); RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); - } static void def_cmp_filter(StructRNA *srna) |