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, "UnknownCC", FloatUtil.ToString(Unknown_CCh));
|
||||||
YftXml.ValueTag(sb, indent, "UnknownD0", FloatUtil.ToString(Unknown_D0h));
|
YftXml.ValueTag(sb, indent, "UnknownD0", FloatUtil.ToString(Unknown_D0h));
|
||||||
YftXml.ValueTag(sb, indent, "UnknownD4", FloatUtil.ToString(Unknown_D4h));
|
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");
|
FragDrawable.WriteXmlNode(Drawable, sb, indent, ddsfolder, "Drawable");
|
||||||
}
|
}
|
||||||
@ -520,7 +520,14 @@ namespace CodeWalker.GameFiles
|
|||||||
v.ReadXml(inode, ddsfolder);
|
v.ReadXml(inode, ddsfolder);
|
||||||
vlist.Add(v);
|
vlist.Add(v);
|
||||||
|
|
||||||
DrawableCloth = v.Drawable;
|
if (Drawable == null)
|
||||||
|
{
|
||||||
|
Drawable = v.Drawable;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
DrawableCloth = v.Drawable;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Cloths.data_items = vlist.ToArray();
|
Cloths.data_items = vlist.ToArray();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user