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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user