[Bf-blender-cvs] [e29206f86a5] master: Cleanup: Remove broken/deprecated setting of color-ramp button step size

Julian Eisel noreply at git.blender.org
Tue Nov 3 22:35:09 CET 2020


Commit: e29206f86a5fb4fc5fb4aee2e6b6e03f848080c7
Author: Julian Eisel
Date:   Tue Nov 3 22:31:46 2020 +0100
Branches: master
https://developer.blender.org/rBe29206f86a5fb4fc5fb4aee2e6b6e03f848080c7

Cleanup: Remove broken/deprecated setting of color-ramp button step size

Setting the button's step size like this wouldn't work anymore after
e6f0b60c2e91, which is reported in T81794. Instead, the step size should be set
for the RNA property, as proposed in D9277. That will be committed separately
as bug fix.

===================================================================

M	source/blender/editors/interface/interface_templates.c

===================================================================

diff --git a/source/blender/editors/interface/interface_templates.c b/source/blender/editors/interface/interface_templates.c
index 62c387638dc..678dbe868e7 100644
--- a/source/blender/editors/interface/interface_templates.c
+++ b/source/blender/editors/interface/interface_templates.c
@@ -3304,7 +3304,6 @@ static void colorband_buttons_layout(uiLayout *layout,
       row = uiLayoutRow(split, false);
       uiItemR(row, &ptr, "position", 0, IFACE_("Pos"), ICON_NONE);
       bt = block->buttons.last;
-      bt->a1 = 1.0f; /* gives a bit more precision for modifying position */
       UI_but_func_set(bt, colorband_update_cb, bt, coba);
 
       row = uiLayoutRow(layout, false);
@@ -3336,7 +3335,6 @@ static void colorband_buttons_layout(uiLayout *layout,
       row = uiLayoutRow(subsplit, false);
       uiItemR(row, &ptr, "position", UI_ITEM_R_SLIDER, IFACE_("Pos"), ICON_NONE);
       bt = block->buttons.last;
-      bt->a1 = 1.0f; /* gives a bit more precision for modifying position */
       UI_but_func_set(bt, colorband_update_cb, bt, coba);
 
       row = uiLayoutRow(split, false);



More information about the Bf-blender-cvs mailing list