modify number button copy/paste to work as if you enter the button, select text, type into another button the same value.
This means you can copy/paste units and python expressions.
This commit is contained in:
@@ -356,6 +356,7 @@ extern void ui_get_but_string(uiBut *but, char *str, size_t maxlen);
|
||||
extern void ui_convert_to_unit_alt_name(uiBut *but, char *str, size_t maxlen);
|
||||
extern int ui_set_but_string(struct bContext *C, uiBut *but, const char *str);
|
||||
extern int ui_get_but_string_max_length(uiBut *but);
|
||||
extern int ui_set_but_string_eval_num(struct bContext *C, uiBut *but, const char *str, double *value);
|
||||
|
||||
extern void ui_set_but_default(struct bContext *C, short all);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user