Compositor: Re-write Pixelate node for CPU compositor #117223

Merged
Sergey Sharybin merged 3 commits from Sergey/blender:compositor_pixelate into main 2024-01-18 11:31:06 +01:00
1 changed files with 5 additions and 0 deletions
Showing only changes of commit f7775b798d - Show all commits

View File

@ -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

Specify a range to avoid negative input.

Specify a range to avoid negative input.
* 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");
}