Cleanup: UI: Remove unnecessary button arguments
Passing the current enum value as a float to the "min" argument doesn't seem to do anything. It's also the only place that the min and max arguments to `uiDefIconTextBut` are used.
This commit is contained in:
@@ -4691,7 +4691,7 @@ static void ui_def_but_rna__menu(bContext *C, uiLayout *layout, void *but_p)
|
||||
UI_UNIT_X * 5,
|
||||
UI_UNIT_Y,
|
||||
&handle->retvalue,
|
||||
item->value,
|
||||
0.0f,
|
||||
0.0,
|
||||
description_static);
|
||||
}
|
||||
|
||||
@@ -111,7 +111,7 @@ static void ui_imageuser_slot_menu(bContext *C, uiLayout *layout, void *image_p)
|
||||
UI_UNIT_X * 5,
|
||||
UI_UNIT_X,
|
||||
&image->render_slot,
|
||||
float(slot_id),
|
||||
0.0f,
|
||||
0.0,
|
||||
"");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user