mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-11-26 08:52:52 +08:00
Fixed YFT/XML conversion for cloth yft's
This commit is contained in:
parent
379b141b13
commit
d7c3caaa1d
@ -382,7 +382,7 @@ namespace CodeWalker.GameFiles
|
||||
YftXml.ValueTag(sb, indent, "UnknownCC", FloatUtil.ToString(Unknown_CCh));
|
||||
YftXml.ValueTag(sb, indent, "UnknownD0", FloatUtil.ToString(Unknown_D0h));
|
||||
YftXml.ValueTag(sb, indent, "UnknownD4", FloatUtil.ToString(Unknown_D4h));
|
||||
if (Drawable != null)
|
||||
if ((Drawable != null) && (Drawable.OwnerCloth == null))
|
||||
{
|
||||
FragDrawable.WriteXmlNode(Drawable, sb, indent, ddsfolder, "Drawable");
|
||||
}
|
||||
@ -520,8 +520,15 @@ namespace CodeWalker.GameFiles
|
||||
v.ReadXml(inode, ddsfolder);
|
||||
vlist.Add(v);
|
||||
|
||||
if (Drawable == null)
|
||||
{
|
||||
Drawable = v.Drawable;
|
||||
}
|
||||
else
|
||||
{
|
||||
DrawableCloth = v.Drawable;
|
||||
}
|
||||
}
|
||||
Cloths.data_items = vlist.ToArray();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user