Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-06-23 22:04:41 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-06-23 22:04:41 +0400
commit870dba7657c7cc169a9d98695134f3ee8de8cd5b (patch)
treef3207f5709a597459c634ffe4169d7c6fc8e980d /source/blender/makesrna
parent0c8ebad16ebad4a9ad8592f5ca7a8af43ae1caf0 (diff)
Keying node: assume overexposured pixels as foreground
Screens are usually doesn't have overexposured pixels and all saturation / gradient math was written assuming that all channels are withing 0 .. 1 range and in cases when some channel exceeds this range matte could be completely wrong. Added special check for overesposure and assume such pixels as definitely foreground. Also fixed minimal value for edge kernel size.
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r--source/blender/makesrna/intern/rna_nodetree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_nodetree.c b/source/blender/makesrna/intern/rna_nodetree.c
index dd4c36292b4..baf3ccf35e1 100644
--- a/source/blender/makesrna/intern/rna_nodetree.c
+++ b/source/blender/makesrna/intern/rna_nodetree.c
@@ -3611,7 +3611,7 @@ static void def_cmp_keying(StructRNA *srna)
prop = RNA_def_property(srna, "edge_kernel_radius", PROP_INT, PROP_NONE);
RNA_def_property_int_sdna(prop, NULL, "edge_kernel_radius");
- RNA_def_property_range(prop, -100, 100);
+ RNA_def_property_range(prop, 0, 100);
RNA_def_property_ui_text(prop, "Edge Kernel Radius", "Radius of kernel used to detect whether pixel belongs to edge");
RNA_def_property_update(prop, NC_NODE|NA_EDITED, "rna_Node_update");