diff options
author | Richard Antalik <richardantalik@gmail.com> | 2020-11-04 20:09:21 +0300 |
---|---|---|
committer | Richard Antalik <richardantalik@gmail.com> | 2020-11-04 20:09:21 +0300 |
commit | fd110291a5f133042511dee3648c354fca141a43 (patch) | |
tree | 4b71112f139bcaa10176a11daa5d176cf243bae7 /source/blender/makesrna | |
parent | 96e8dadda0b2dda7ce771b1eba2d901a056a039f (diff) |
Fix T81794: ColorRampElement step regression
Set step in RNA property definition.
There was a hardcoded setting of a1 for this specific button, which
used to be the variable to store the step size of number buttons until
rBe6f0b60c2e91. hardcoded value is removed in rBe29206f86a5f.
Reviewed By: Severin
Differential Revision: https://developer.blender.org/D9277
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_color.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_color.c b/source/blender/makesrna/intern/rna_color.c index 79f2ab70651..b4f053a0d2b 100644 --- a/source/blender/makesrna/intern/rna_color.c +++ b/source/blender/makesrna/intern/rna_color.c @@ -941,6 +941,7 @@ static void rna_def_color_ramp_element(BlenderRNA *brna) prop = RNA_def_property(srna, "position", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "pos"); RNA_def_property_range(prop, 0, 1); + RNA_def_property_ui_range(prop, 0, 1, 1, 3); RNA_def_property_ui_text(prop, "Position", "Set position of selected color stop"); RNA_def_property_update(prop, 0, "rna_ColorRamp_update"); } |