On 21.11.2005 23:53, Andrew Craig wrote: > Good point. Is there anybody that understands AttachCoreMesh? I'm making > the > attempt now but is slow going filled with crashness goodies.
The most important tidbits are: > size_t attachIndex = meshes.InsertSorted (newMesh, &CompareMeshMesh); This inserts "newMesh" into the meshes array. This needs to be reversed; the proper index for your mesh in meshes can be obtained with meshes.FindSortedKey() (same as in start of AttachCoreMesh()). > SetupRenderMeshTemplate (calMesh, attachIndex); This basically just inserts an item into renderMeshTemplates; reverse that as well. Conveniently, the index is the same as in the meshes array. I think that should mostly be it. -f.r.
signature.asc
Description: OpenPGP digital signature
