paint: edit mesh name

This commit is contained in:
luboslenco
2026-05-04 21:37:05 +02:00
parent d8ece4956c
commit 93f05134a1
+1
View File
@@ -243,6 +243,7 @@ void tab_meshes_draw_context_menu() {
h = ui_handle(__ID__); h = ui_handle(__ID__);
h->text = string_copy(o->base->name); h->text = string_copy(o->base->name);
o->base->name = string_copy(ui_text_input(h, "", UI_ALIGN_LEFT, true, false)); o->base->name = string_copy(ui_text_input(h, "", UI_ALIGN_LEFT, true, false));
o->data->name = string_copy(o->base->name);
if (ui->changed || ui->is_typing) { if (ui->changed || ui->is_typing) {
ui_menu_keep_open = true; ui_menu_keep_open = true;