From 6ad5e2ef1f69b4235538051f4702f6faa418fe43 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Sun, 2 Oct 2011 12:57:49 +0000 Subject: =?UTF-8?q?Fix=20[#28436]=20ID=20mask=20creates=20'feather'=20arou?= =?UTF-8?q?nd=20ID=20even=20with=20AA=20turned=20off.=20Perhaps=20not=20th?= =?UTF-8?q?e=20ideal=20solution,=20but=20it=20works,=20is=20easy=20to=20un?= =?UTF-8?q?do=20if/when=20we=20have=20a=20better=20one,=20and=20I=E2=80=99?= =?UTF-8?q?m=20pretty=20sure=20it=20won=E2=80=99t=20break=20anything...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/blender/makesrna/intern/rna_nodetree.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/blender/makesrna') diff --git a/source/blender/makesrna/intern/rna_nodetree.c b/source/blender/makesrna/intern/rna_nodetree.c index 1b113620663..23a71b20c32 100644 --- a/source/blender/makesrna/intern/rna_nodetree.c +++ b/source/blender/makesrna/intern/rna_nodetree.c @@ -1874,6 +1874,11 @@ static void def_cmp_id_mask(StructRNA *srna) RNA_def_property_range(prop, 0, 10000); RNA_def_property_ui_text(prop, "Index", "Pass index number to convert to alpha"); RNA_def_property_update(prop, NC_NODE|NA_EDITED, "rna_Node_update"); + + prop = RNA_def_property(srna, "smooth_mask", PROP_BOOLEAN, PROP_NONE); + RNA_def_property_boolean_sdna(prop, NULL, "custom2", 0); + RNA_def_property_ui_text(prop, "Smooth Mask", "Apply an anti-aliasing filter to the mask"); + RNA_def_property_update(prop, NC_NODE|NA_EDITED, "rna_Node_update"); } static void def_cmp_map_uv(StructRNA *srna) -- cgit v1.2.3