FIX: toolbar cannot rescale a super small stl correctly

1.reason: input box limit the digit of input number, and has a max value limit of scale

Change-Id: Ib6f36033ebc9d1621eb0c3359c67ff788518f528
This commit is contained in:
liz.li 2022-12-13 17:19:21 +08:00 committed by Lane.Wei
parent 5f5ffc8376
commit c832a03616
2 changed files with 10 additions and 16 deletions

View file

@ -4175,7 +4175,7 @@ bool ImGui::BBLInputScalar(const char *label, ImGuiDataType data_type, void *p_d
if (format == NULL) format = DataTypeGetInfo(data_type)->PrintFmt;
char buf[8];
char buf[64];
DataTypeFormatString(buf, IM_ARRAYSIZE(buf), data_type, p_data, format);
bool value_changed = false;