Skip to content

Commit

Permalink
Fixed AutoBody Ini mode output
Browse files Browse the repository at this point in the history
Broke silently in 91c4dda
  • Loading branch information
Piranha91 committed Dec 7, 2023
1 parent 44eb48d commit b792e31
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion SynthEBD/Patcher/OBody Patching/OBodyWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,11 @@ public void WriteAssignmentIni()

foreach (var entry in Patcher.BodySlideTracker)
{
outputStr += BodyGenWriter.FormatFormKeyForBodyGen(entry.Key) + "=" + entry.Value + Environment.NewLine;
if (!entry.Value.Any())
{
continue;
}
outputStr += BodyGenWriter.FormatFormKeyForBodyGen(entry.Key) + "=" + entry.Value.First() + Environment.NewLine;
}

var destPath = Path.Combine(_paths.OutputDataFolder, "autoBody", "Config", "morphs.ini");
Expand Down

0 comments on commit b792e31

Please sign in to comment.