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

+6 -2
View File
@@ -199,8 +199,10 @@ namespace anm2ed
{
if (id == -1)
editLayer = anm2::Layer();
else if (auto it = document->anm2.content.layers.find(id); it != document->anm2.content.layers.end())
editLayer = it->second;
else
editLayer = document->anm2.content.layers.at(id);
return;
document->layer.reference = id;
@@ -224,8 +226,10 @@ namespace anm2ed
{
if (id == -1)
editNull = anm2::Null();
else if (auto it = document->anm2.content.nulls.find(id); it != document->anm2.content.nulls.end())
editNull = it->second;
else
editNull = document->anm2.content.nulls.at(id);
return;
document->null.reference = id;