Fix interger number buttons increment/decrement arrows not working in
some cases Since rB78b56fa7d973 defining a button with 'but->a1 = 0' wasnt automatically setting its step value to 1 in 'ui_do_but_NUM' anymore. Instead of handling this more forgiving in 'ui_do_but_NUM', went over the remaining cases of buttons and and defined them with a step value of 1. Fixes T69305 Reviewed By: brecht Maniphest Tasks: T69305 Differential Revision: https://developer.blender.org/D5631
This commit is contained in:
parent
f033fa0fbc
commit
44ace647a8
Notes:
blender-bot
2023-02-14 05:41:57 +01:00
Referenced by issue #69305, Some Integer button increment/decrement arrows are broken (e.g Color Ramp switch arrows don't work) Referenced by issue #69104, colorramp, choose active color stop
|
@ -197,7 +197,7 @@ static void draw_modifier__generator(uiLayout *layout,
|
|||
&data->poly_order,
|
||||
1,
|
||||
100,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
TIP_("'Order' of the Polynomial (for a polynomial with n terms, 'order' is n-1)"));
|
||||
UI_but_func_set(but, validate_fmodifier_cb, fcm, fcurve_owner_id);
|
||||
|
@ -335,7 +335,7 @@ static void draw_modifier__generator(uiLayout *layout,
|
|||
&data->poly_order,
|
||||
1,
|
||||
100,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
TIP_("'Order' of the Polynomial (for a polynomial with n terms, 'order' is n-1)"));
|
||||
UI_but_func_set(but, validate_fmodifier_cb, fcm, fcurve_owner_id);
|
||||
|
|
|
@ -3207,7 +3207,7 @@ static void colorband_buttons_layout(uiLayout *layout,
|
|||
&coba->cur,
|
||||
0.0,
|
||||
(float)(MAX2(0, coba->tot - 1)),
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
TIP_("Choose active color stop"));
|
||||
row = uiLayoutRow(split, false);
|
||||
|
@ -3237,7 +3237,7 @@ static void colorband_buttons_layout(uiLayout *layout,
|
|||
&coba->cur,
|
||||
0.0,
|
||||
(float)(MAX2(0, coba->tot - 1)),
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
TIP_("Choose active color stop"));
|
||||
row = uiLayoutRow(subsplit, false);
|
||||
|
|
Loading…
Reference in New Issue