Cleanup: Remove broken/deprecated setting of color-ramp button step size
Setting the button's step size like this wouldn't work anymore after
e6f0b60c2e
, 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.
This commit is contained in:
parent
db7cf3652c
commit
e29206f86a
Notes:
blender-bot
2023-02-14 06:00:45 +01:00
Referenced by commit fd110291a5
, Fix T81794: ColorRampElement step regression
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue