forked from Mirrors/openclonk
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
parent
2ce04aa485
commit
9208f32d16
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue