//! Adds a standard modifier chain (type: CLOD mesh declaration) to the chain of all data blocks.
void U3DFileWriter::addModifierChain_CLODMeshDeclaration(const mlU3D::CLODMeshGenerator& meshGenerator)
{
    size_t ModifierChainBlockIndex = addStandardBlock_ModifierChain(meshGenerator.resourceName, mlU3D::MODIFIERCHAINTYPE_MODELRESOURCEMODIFIERCHAIN, 0x00000000, 1);

    size_t CLODMeshDeclarationBlockIndex = addStandardBlock_CLODMeshDeclaration(meshGenerator);
    _dataBlocks[CLODMeshDeclarationBlockIndex].close();

    _dataBlocks[ModifierChainBlockIndex].addChildDataBytes(_dataBlocks[CLODMeshDeclarationBlockIndex].getNumDataBytes());
}
//! Adds a standard modifier chain (type: CLOD mesh declaration) to the chain of all data blocks.
void U3DFileWriter::addModifierChain_CLODMeshDeclaration(const U3DMeshInfoStruct& meshInfo)
{
  size_t ModifierChainBlockIndex = addStandardBlock_ModifierChain(meshInfo.ResourceName, U3D_MODIFIERCHAINTYPE_MODELRESOURCEMODIFIERCHAIN, 0x00000000, 1);
  
  size_t CLODMeshDeclarationBlockIndex = addStandardBlock_CLODMeshDeclaration(meshInfo);
  _dataBlocks[CLODMeshDeclarationBlockIndex].close();
  
  _dataBlocks[ModifierChainBlockIndex].addChildDataBytes(_dataBlocks[CLODMeshDeclarationBlockIndex].getNumDataBytes());
}