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
This commit is contained in:
Richard Antalik 2020-11-04 18:09:21 +01:00
parent 96e8dadda0
commit fd110291a5
Notes: blender-bot 2023-02-14 10:37:49 +01:00
Referenced by issue #81794, Color Ramp Element position stepping is unusable
1 changed files with 1 additions and 0 deletions

View File

@ -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");
}