Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Antalik <richardantalik@gmail.com>2020-11-04 20:09:21 +0300
committerRichard Antalik <richardantalik@gmail.com>2020-11-04 20:09:21 +0300
commitfd110291a5f133042511dee3648c354fca141a43 (patch)
tree4b71112f139bcaa10176a11daa5d176cf243bae7 /source/blender/makesrna/intern/rna_color.c
parent96e8dadda0b2dda7ce771b1eba2d901a056a039f (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/intern/rna_color.c')
-rw-r--r--source/blender/makesrna/intern/rna_color.c1
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");
}