minor bug fixes

This commit is contained in:
2025-12-03 02:11:25 -05:00
parent 24f98fe0a0
commit b4fddb7714
9 changed files with 26 additions and 7 deletions

View File

@@ -127,7 +127,9 @@ namespace anm2ed::imgui
auto add = [&]()
{
auto id = map::next_id_get(anm2.content.events);
anm2.content.events[id] = anm2::Event();
anm2::Event event{};
event.name = localize.get(TEXT_NEW_EVENT);
anm2.content.events[id] = event;
selection = {id};
reference = {id};
newEventId = id;