mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2026-05-14 21:44:43 +08:00
Fixed BoundComposite BVH crash issue for fragments with destroyed models, also fixed missing BVH for XML imported ybn
This commit is contained in:
@@ -2277,6 +2277,14 @@ namespace CodeWalker.GameFiles
|
||||
}
|
||||
}
|
||||
|
||||
if (Archetype1 != null)
|
||||
{
|
||||
Archetype1.Owner = this;
|
||||
}
|
||||
if (Archetype2 != null)
|
||||
{
|
||||
Archetype2.Owner = this;
|
||||
}
|
||||
if (Bound != null)
|
||||
{
|
||||
Bound.Owner = this;
|
||||
@@ -2520,12 +2528,14 @@ namespace CodeWalker.GameFiles
|
||||
if (a1node != null)
|
||||
{
|
||||
Archetype1 = new FragPhysArchetype();
|
||||
Archetype1.Owner = this;
|
||||
Archetype1.ReadXml(a1node);
|
||||
}
|
||||
var a2node = node.SelectSingleNode("Archetype2");
|
||||
if (a2node != null)
|
||||
{
|
||||
Archetype2 = new FragPhysArchetype();
|
||||
Archetype2.Owner = this;
|
||||
Archetype2.ReadXml(a2node);
|
||||
}
|
||||
var abnode = node.SelectSingleNode("ArticulatedBody");
|
||||
@@ -3349,6 +3359,8 @@ namespace CodeWalker.GameFiles
|
||||
|
||||
private string_r NameBlock = null;//used only when saving
|
||||
|
||||
public FragPhysicsLOD Owner { get; set; } //required for correct bounds BVH generation
|
||||
|
||||
|
||||
public override void Read(ResourceDataReader reader, params object[] parameters)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user