mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2026-05-15 01:04:49 +08:00
Updated Dec3N XML conversion. Ported BoundGeometry.VerticesShrunk code from rageAm. Added Track2AnimUV shader param name
This commit is contained in:
@@ -512,6 +512,10 @@ namespace CodeWalker.GameFiles
|
||||
}
|
||||
LightAttributes = new ResourceSimpleList64<LightAttributes>();
|
||||
LightAttributes.data_items = XmlMeta.ReadItemArray<LightAttributes>(node, "Lights");
|
||||
if (LightAttributes.data_items == null)
|
||||
{
|
||||
LightAttributes.data_items = new LightAttributes[0];
|
||||
}
|
||||
Cloths = new ResourcePointerList64<EnvironmentCloth>();
|
||||
var cnode = node.SelectSingleNode("Cloths");
|
||||
if (cnode != null)
|
||||
@@ -526,6 +530,10 @@ namespace CodeWalker.GameFiles
|
||||
v.ReadXml(inode, ddsfolder);
|
||||
vlist.Add(v);
|
||||
|
||||
if (v.Drawable != null)
|
||||
{
|
||||
v.Drawable.OwnerCloth = v;
|
||||
}
|
||||
if (Drawable == null)
|
||||
{
|
||||
Drawable = v.Drawable;
|
||||
@@ -2898,6 +2906,7 @@ namespace CodeWalker.GameFiles
|
||||
{
|
||||
var type = Xml.GetEnumValue<FragJointType>(Xml.GetStringAttribute(jnode, "type"));
|
||||
var j = FragPhysJointType.Create(type);
|
||||
j.Type = type;
|
||||
j?.ReadXml(jnode);
|
||||
jlist.Add(j);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user