forked from bartvdbraak/blender
skip creating the draw-string for number buttons while editing the text (value was overwritten)
This commit is contained in:
parent
55640288d2
commit
aed11512fc
@ -2426,6 +2426,7 @@ void ui_check_but(uiBut *but)
|
|||||||
case NUM:
|
case NUM:
|
||||||
case NUMSLI:
|
case NUMSLI:
|
||||||
|
|
||||||
|
if (!but->editstr) {
|
||||||
UI_GET_BUT_VALUE_INIT(but, value);
|
UI_GET_BUT_VALUE_INIT(but, value);
|
||||||
|
|
||||||
if (ui_is_but_float(but)) {
|
if (ui_is_but_float(but)) {
|
||||||
@ -2456,6 +2457,7 @@ void ui_check_but(uiBut *but)
|
|||||||
if (pstype == PROP_PERCENTAGE)
|
if (pstype == PROP_PERCENTAGE)
|
||||||
strcat(but->drawstr, "%");
|
strcat(but->drawstr, "%");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case LABEL:
|
case LABEL:
|
||||||
|
Loading…
Reference in New Issue
Block a user