miscellaneous sloppa fixes

This commit is contained in:
shweet committed 2026-04-20 13:54:49 -04:00
1 parent bfe9e3e982
commit d39a1dac3c
11 files changed
+172 -109

No files matched your search

+7
View File
@@ -482,6 +482,13 @@ namespace anm2ed::imgui
if (ImGui::BeginPopupModal(propertiesPopup.label(), &propertiesPopup.isOpen, ImGuiWindowFlags_NoResize))
{
if (!spritesheet || (reference != -1 && !spritesheet->regions.contains(reference)))
{
propertiesPopup.close();
ImGui::EndPopup();
return;
}
auto childSize = child_size_get(5);
auto& region = reference == -1 ? editRegion : spritesheet->regions.at(reference);