Fix T70397: Dilate/Erode 'distance' increment/decrement arrows not

working

Since rB78b56fa7d973 we always have to specify a valid step value.
This commit is contained in:
Philipp Oeser 2019-10-01 10:24:07 +02:00
parent b0e7108eda
commit 2746fbc935
Notes: blender-bot 2023-02-14 09:24:53 +01:00
Referenced by issue #70397, Dilate/Erode Node - Broken Control
1 changed files with 1 additions and 1 deletions

View File

@ -5719,7 +5719,7 @@ static void def_cmp_dilate_erode(StructRNA *srna)
prop = RNA_def_property(srna, "distance", PROP_INT, PROP_NONE);
RNA_def_property_int_sdna(prop, NULL, "custom2");
RNA_def_property_range(prop, -5000, 5000);
RNA_def_property_ui_range(prop, -100, 100, 0, -1);
RNA_def_property_ui_range(prop, -100, 100, 1, -1);
RNA_def_property_ui_text(prop, "Distance", "Distance to grow/shrink (number of iterations)");
RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update");