fixed event handling and a lot of ID stuff OOPS
This commit is contained in:
+2
-1
@@ -103,10 +103,11 @@ namespace anm2ed::anm2
|
||||
element->SetAttribute("Interpolated", isInterpolated);
|
||||
break;
|
||||
case TRIGGER:
|
||||
element->SetAttribute("EventId", eventID);
|
||||
if (eventID != -1) element->SetAttribute("EventId", eventID);
|
||||
|
||||
for (auto& id : soundIDs)
|
||||
{
|
||||
if (id == -1) continue;
|
||||
auto soundChild = element->InsertNewChildElement("Sound");
|
||||
soundChild->SetAttribute("Id", id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user