mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2025-01-10 15:05:06 +08:00
Fix for <Item type="None" /> appearing in drawable XML
This commit is contained in:
parent
d6039e87ab
commit
8ea3327810
@ -466,7 +466,7 @@ namespace CodeWalker.GameFiles
|
|||||||
{
|
{
|
||||||
if (b == null)
|
if (b == null)
|
||||||
{
|
{
|
||||||
YbnXml.SelfClosingTag(sb, indent, "Item type=\"" + BoundsType.None.ToString() + "\"");
|
YbnXml.SelfClosingTag(sb, indent, name + " type=\"" + BoundsType.None.ToString() + "\"");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -5560,7 +5560,10 @@ namespace CodeWalker.GameFiles
|
|||||||
{
|
{
|
||||||
YdrXml.StringTag(sb, indent, "Name", YdrXml.XmlEscape(Name));
|
YdrXml.StringTag(sb, indent, "Name", YdrXml.XmlEscape(Name));
|
||||||
base.WriteXml(sb, indent, ddsfolder);
|
base.WriteXml(sb, indent, ddsfolder);
|
||||||
Bounds.WriteXmlNode(Bound, sb, indent);
|
if (Bound != null)
|
||||||
|
{
|
||||||
|
Bounds.WriteXmlNode(Bound, sb, indent);
|
||||||
|
}
|
||||||
if (LightAttributes?.data_items != null)
|
if (LightAttributes?.data_items != null)
|
||||||
{
|
{
|
||||||
YdrXml.WriteItemArray(sb, LightAttributes.data_items, indent, "Lights");
|
YdrXml.WriteItemArray(sb, LightAttributes.data_items, indent, "Lights");
|
||||||
|
@ -949,7 +949,10 @@ namespace CodeWalker.GameFiles
|
|||||||
|
|
||||||
base.WriteXml(sb, indent, ddsfolder);
|
base.WriteXml(sb, indent, ddsfolder);
|
||||||
|
|
||||||
Bounds.WriteXmlNode(Bound, sb, indent);
|
if (Bound != null)
|
||||||
|
{
|
||||||
|
Bounds.WriteXmlNode(Bound, sb, indent);
|
||||||
|
}
|
||||||
|
|
||||||
Skeleton = skel;
|
Skeleton = skel;
|
||||||
Bound = bnds;
|
Bound = bnds;
|
||||||
|
Loading…
Reference in New Issue
Block a user