Commit: b5bb38400f6663563ab348857b95fe9b7e1d7d92 Author: Aaron Carlisle Date: Fri Jan 20 21:42:24 2023 -0500 Branches: master https://developer.blender.org/rBb5bb38400f6663563ab348857b95fe9b7e1d7d92
Python API: Set defaults for Denoise Node Fixes T103898 =================================================================== M source/blender/makesrna/intern/rna_nodetree.c =================================================================== diff --git a/source/blender/makesrna/intern/rna_nodetree.c b/source/blender/makesrna/intern/rna_nodetree.c index eeb88be0fe2..e007457297e 100644 --- a/source/blender/makesrna/intern/rna_nodetree.c +++ b/source/blender/makesrna/intern/rna_nodetree.c @@ -9197,11 +9197,13 @@ static void def_cmp_denoise(StructRNA *srna) prop = RNA_def_property(srna, "use_hdr", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "hdr", 0); + RNA_def_property_boolean_default(prop, true); RNA_def_property_ui_text(prop, "HDR", "Process HDR images"); RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); prop = RNA_def_property(srna, "prefilter", PROP_ENUM, PROP_NONE); RNA_def_property_enum_items(prop, prefilter_items); + RNA_def_property_enum_default(prop, CMP_NODE_DENOISE_PREFILTER_ACCURATE); RNA_def_property_ui_text(prop, "", "Denoising prefilter"); RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); } _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org List details, subscription details or unsubscribe: https://lists.blender.org/mailman/listinfo/bf-blender-cvs