Python API: Set defaults for Denoise Node

Fixes T103898
This commit is contained in:
Aaron Carlisle 2023-01-20 21:42:24 -05:00
parent 25864d3dfc
commit b5bb38400f
1 changed files with 2 additions and 0 deletions

View File

@ -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");
}