Skip to content

Commit b703772

Browse files
committed
allow long key values in the smart edit tab
forgot to increase this to match the raw edit tab limits
1 parent a4dbf28 commit b703772

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/editor/Gui.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2104,8 +2104,8 @@ void Gui::drawKeyvalueEditor_SmartEditTab(Entity* ent) {
21042104

21052105
ImGui::Columns(2, "smartcolumns", false); // 4-ways, with border
21062106

2107-
static char keyNames[128][64];
2108-
static char keyValues[128][64];
2107+
static char keyNames[MAX_KEYS_PER_ENT][MAX_KEY_LEN];
2108+
static char keyValues[MAX_KEYS_PER_ENT][MAX_VAL_LEN];
21092109

21102110
float paddingx = style.WindowPadding.x + style.FramePadding.x;
21112111
float inputWidth = (ImGui::GetWindowWidth() - (paddingx * 2)) * 0.5f;
@@ -2225,7 +2225,7 @@ void Gui::drawKeyvalueEditor_SmartEditTab(Entity* ent) {
22252225
InputChangeCallback::keyValueChanged, &inputData[i]);
22262226
}
22272227
else {
2228-
ImGui::InputText(("##val" + to_string(i) + "_" + to_string(app->pickCount)).c_str(), keyValues[i], 64,
2228+
ImGui::InputText(("##val" + to_string(i) + "_" + to_string(app->pickCount)).c_str(), keyValues[i], MAX_VAL_LEN,
22292229
ImGuiInputTextFlags_CallbackAlways, InputChangeCallback::keyValueChanged, &inputData[i]);
22302230
}
22312231

0 commit comments

Comments
 (0)