Denumerate attached meshes recursively (#1603)

Since mesh instances can now be attached to attached definitions, attached
definitions need to denumerate pointers recursively to make sure that the
reference to the mesh instance is restored correctly.
shapetextures
Armin Burgmeier 2016-01-12 18:19:41 -08:00
parent 2ce04aa485
commit 9208f32d16
1 changed files with 3 additions and 0 deletions

View File

@ -1030,6 +1030,9 @@ void StdMeshInstance::AttachedMesh::DenumeratePointers()
Child->AttachParent = this;
MapBonesOfChildToParent(Parent->GetMesh().GetSkeleton(), Child->GetMesh().GetSkeleton());
if(OwnChild)
Child->DenumeratePointers();
}
bool StdMeshInstance::AttachedMesh::ClearPointers(class C4Object* pObj)