diff --git a/CodeWalker.Core/GameFiles/Resources/Bounds.cs b/CodeWalker.Core/GameFiles/Resources/Bounds.cs index 003f3f5..b5fd18f 100644 --- a/CodeWalker.Core/GameFiles/Resources/Bounds.cs +++ b/CodeWalker.Core/GameFiles/Resources/Bounds.cs @@ -466,7 +466,7 @@ namespace CodeWalker.GameFiles { if (b == null) { - YbnXml.SelfClosingTag(sb, indent, "Item type=\"" + BoundsType.None.ToString() + "\""); + YbnXml.SelfClosingTag(sb, indent, name + " type=\"" + BoundsType.None.ToString() + "\""); } else { diff --git a/CodeWalker.Core/GameFiles/Resources/Drawable.cs b/CodeWalker.Core/GameFiles/Resources/Drawable.cs index 0cdc9f6..a7c8d5f 100644 --- a/CodeWalker.Core/GameFiles/Resources/Drawable.cs +++ b/CodeWalker.Core/GameFiles/Resources/Drawable.cs @@ -5560,7 +5560,10 @@ namespace CodeWalker.GameFiles { YdrXml.StringTag(sb, indent, "Name", YdrXml.XmlEscape(Name)); base.WriteXml(sb, indent, ddsfolder); - Bounds.WriteXmlNode(Bound, sb, indent); + if (Bound != null) + { + Bounds.WriteXmlNode(Bound, sb, indent); + } if (LightAttributes?.data_items != null) { YdrXml.WriteItemArray(sb, LightAttributes.data_items, indent, "Lights"); diff --git a/CodeWalker.Core/GameFiles/Resources/Frag.cs b/CodeWalker.Core/GameFiles/Resources/Frag.cs index 71d2eb0..7091840 100644 --- a/CodeWalker.Core/GameFiles/Resources/Frag.cs +++ b/CodeWalker.Core/GameFiles/Resources/Frag.cs @@ -949,7 +949,10 @@ namespace CodeWalker.GameFiles base.WriteXml(sb, indent, ddsfolder); - Bounds.WriteXmlNode(Bound, sb, indent); + if (Bound != null) + { + Bounds.WriteXmlNode(Bound, sb, indent); + } Skeleton = skel; Bound = bnds;