diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-08-14 18:31:39 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-08-14 18:31:39 +0400 |
commit | 9591142294fdcaded15663002e1f7bac568d7ed6 (patch) | |
tree | 52113a7107214478dc311733dae25f24410341ff /source/blender/makesrna | |
parent | 59fedc6b7c315cbf95035d7add1cdb6384eb13e7 (diff) |
add variable size option to bokeh blur node, remove f_stop option (it wasnt used), and add `blur_max` to the interface.
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_nodetree.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_nodetree.c b/source/blender/makesrna/intern/rna_nodetree.c index 19be68801ca..9e4d29eca52 100644 --- a/source/blender/makesrna/intern/rna_nodetree.c +++ b/source/blender/makesrna/intern/rna_nodetree.c @@ -1723,6 +1723,7 @@ static void def_cmp_blur(StructRNA *srna) {0, NULL, 0, NULL, NULL} }; + /* duplicated in def_cmp_bokehblur */ prop = RNA_def_property(srna, "use_variable_size", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "custom1", CMP_NODEFLAG_BLUR_VARIABLE_SIZE); RNA_def_property_ui_text(prop, "Variable Size", "Support variable blue per-pixel when using an image for size input"); @@ -3354,6 +3355,14 @@ static void def_cmp_ellipsemask(StructRNA *srna) static void def_cmp_bokehblur(StructRNA *srna) { PropertyRNA *prop; + + /* duplicated in def_cmp_blur */ + prop = RNA_def_property(srna, "use_variable_size", PROP_BOOLEAN, PROP_NONE); + RNA_def_property_boolean_sdna(prop, NULL, "custom1", CMP_NODEFLAG_BLUR_VARIABLE_SIZE); + RNA_def_property_ui_text(prop, "Variable Size", "Support variable blue per-pixel when using an image for size input"); + RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); + +#if 0 prop = RNA_def_property(srna, "f_stop", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "custom3"); RNA_def_property_range(prop, 0.0f, 128.0f); @@ -3361,7 +3370,8 @@ static void def_cmp_bokehblur(StructRNA *srna) "Amount of focal blur, 128=infinity=perfect focus, half the value doubles " "the blur radius"); RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); - +#endif + prop = RNA_def_property(srna, "blur_max", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "custom4"); RNA_def_property_range(prop, 0.0f, 10000.0f); |