Fix for exporting fragments XML drawable array names

This commit is contained in:
dexy 2020-02-26 14:50:12 +11:00
parent 88cb6083eb
commit 44a5d4891b

View File

@ -395,7 +395,9 @@ namespace CodeWalker.GameFiles
var d = DrawableArray.data_items[i]; var d = DrawableArray.data_items[i];
var name = (i < (danames?.Length ?? 0)) ? danames[i] : null; var name = (i < (danames?.Length ?? 0)) ? danames[i] : null;
if (d.Name != name.Value) if (d.Name != name.Value)
{ } {
d.Name = name.Value;
}
FragDrawable.WriteXmlNode(d, sb, indent + 1, ddsfolder, "Item"); FragDrawable.WriteXmlNode(d, sb, indent + 1, ddsfolder, "Item");
} }
YftXml.CloseTag(sb, indent, "DrawableArray"); YftXml.CloseTag(sb, indent, "DrawableArray");