Gems/EMotionFX/Code/EMotionFX/Source/VertexAttributeLayerAbstractData.cpp
void VertexAttributeLayerAbstractData::ResetToOriginalData()
    {
        // if we dont have any original data, there is nothing to do
        if (m_keepOriginals == false)
        {
            return;
        }

        // get the data pointers
        uint8* originalData = (uint8*)GetOriginalData();
        uint8* data         = (uint8*)GetData();

        // copy the original data over the current data
        MCore::MemCopy(data, originalData, CalcTotalDataSizeInBytes(false));
    }
// reset current data into original data, if present
reset current data into original data, if present
reset current data into original data if present
void VertexAttributeLayerAbstractData::ResetToOriginalData()
    {
        if (m_keepOriginals == false)
        {
            return;
        }
        uint8* originalData = (uint8*)GetOriginalData();
        uint8* data         = (uint8*)GetData();
        MCore::MemCopy(data, originalData, CalcTotalDataSizeInBytes(false));
    }
void VertexAttributeLayerAbstractData :: ResetToOriginalData ( ) { if ( m_keepOriginals == false ) { return ; } uint8 * originalData = ( uint8 * ) GetOriginalData ( ) ; uint8 * data = ( uint8 * ) GetData ( ) ; MCore :: MemCopy ( data , originalData , CalcTotalDataSizeInBytes ( false ) ) ; }
reset current data into original data, if present
reset current data into original data if present
// if we dont have any original data, there is nothing to do // get the data pointers // copy the original data over the current data