[Bf-blender-cvs] [2746fbc9355] master: Fix T70397: Dilate/Erode 'distance' increment/decrement arrows not working
Philipp Oeser
noreply at git.blender.org
Tue Oct 1 10:25:54 CEST 2019
Commit: 2746fbc93558f8296220d3d94d3db6957eb9f67d
Author: Philipp Oeser
Date: Tue Oct 1 10:24:07 2019 +0200
Branches: master
https://developer.blender.org/rB2746fbc93558f8296220d3d94d3db6957eb9f67d
Fix T70397: Dilate/Erode 'distance' increment/decrement arrows not
working
Since rB78b56fa7d973 we always have to specify a valid step value.
===================================================================
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 b9b7506cf42..48562cf2684 100644
--- a/source/blender/makesrna/intern/rna_nodetree.c
+++ b/source/blender/makesrna/intern/rna_nodetree.c
@@ -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");
More information about the Bf-blender-cvs
mailing list