Compositor: Re-write Pixelate node for CPU compositor #117223
|
@ -8309,8 +8309,13 @@ static void def_cmp_pixelate(StructRNA *srna)
|
|||
{
|
||||
PropertyRNA *prop;
|
||||
|
||||
/* The range of the pixel size is chosen so that it is positive and above zero, and also does not
|
||||
* exceed the underlying int16_t type. The size limit matches the maximum size used by blur
|
||||
|
||||
* nodes. */
|
||||
prop = RNA_def_property(srna, "pixel_size", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_int_sdna(prop, nullptr, "custom1");
|
||||
RNA_def_property_range(prop, 1, 2048);
|
||||
RNA_def_property_int_default(prop, 1);
|
||||
RNA_def_property_ui_text(prop, "Pixel Size", "Pixel size of the output image");
|
||||
RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Specify a range to avoid negative input.