Gems/EMotionFX/Code/EMotionFX/Exporters/ExporterLib/Exporter/MorphTargetExport.cpp
size_t GetMorphSetupChunkSize(EMotionFX::MorphSetup* morphSetup)
    {
        // get the number of morph targets
        const size_t numMorphTargets = morphSetup->GetNumMorphTargets();

        // calculate the size of the chunk
        size_t totalSize = sizeof(EMotionFX::FileFormat::Actor_MorphTargets);
        for (size_t i = 0; i < numMorphTargets; ++i)
        {
            totalSize += GetMorphTargetChunkSize(morphSetup->GetMorphTarget(i));
        }

        return totalSize;
    }
// get the size of the chunk for the complete morph setup
get the size of the chunk for the complete morph setup
get the size of the chunk for the complete morph setup
size_t GetMorphSetupChunkSize(EMotionFX::MorphSetup* morphSetup)
    {
        const size_t numMorphTargets = morphSetup->GetNumMorphTargets();
        size_t totalSize = sizeof(EMotionFX::FileFormat::Actor_MorphTargets);
        for (size_t i = 0; i < numMorphTargets; ++i)
        {
            totalSize += GetMorphTargetChunkSize(morphSetup->GetMorphTarget(i));
        }
        return totalSize;
    }
size_t GetMorphSetupChunkSize ( EMotionFX :: MorphSetup * morphSetup ) { const size_t numMorphTargets = morphSetup -> GetNumMorphTargets ( ) ; size_t totalSize = sizeof ( EMotionFX :: FileFormat :: Actor_MorphTargets ) ; for ( size_t i = 0 ; i < numMorphTargets ; ++ i ) { totalSize += GetMorphTargetChunkSize ( morphSetup -> GetMorphTarget ( i ) ) ; } return totalSize ; }
get the size of the chunk for the complete morph setup
get the size of the chunk for the complete morph setup
// get the number of morph targets // calculate the size of the chunk