diff --git a/Jusin154_Team3D/Engine/Private/Model.cpp b/Jusin154_Team3D/Engine/Private/Model.cpp index 197e1c0ee..6f8bf8bfd 100644 --- a/Jusin154_Team3D/Engine/Private/Model.cpp +++ b/Jusin154_Team3D/Engine/Private/Model.cpp @@ -23,9 +23,7 @@ CModel::CModel(const CModel& rhs) m_Materials(rhs.m_Materials), m_iNumMaterials(rhs.m_iNumMaterials), m_iNumAnimations(rhs.m_iNumAnimations), - m_pLerpAnim(rhs.m_pLerpAnim), - m_fRadius{rhs.m_fRadius}, - m_vRadiusOffset{rhs.m_vRadiusOffset} + m_pLerpAnim(rhs.m_pLerpAnim) { _uint iNumBones = (_uint)(rhs.m_Bones.size()); m_Bones.reserve(iNumBones); @@ -481,28 +479,6 @@ HRESULT CModel::Ready_Materials_FromFile(const aiScene* pAIScene, const _char* p m_Materials.push_back(pMaterial); } m_Materials.shrink_to_fit(); - - while (true) - { - getline(file, strText); - if (string::npos != strText.find("Origin")) - { - size_t iXPos = strText.find_first_of("X"); - size_t iYPos = strText.find_first_of("Y"); - size_t iZPos = strText.find_first_of("Z"); - size_t iEndPos = strText.find_first_of("}"); - - m_vRadiusOffset.x = stof(strText.substr(iXPos + 2, iYPos - 2)) * 0.01f; - m_vRadiusOffset.z = stof(strText.substr(iYPos + 2, iZPos - 2)) * -0.01f; - m_vRadiusOffset.y = stof(strText.substr(iZPos + 2, iEndPos)) * 0.01f; - } - if (string::npos != strText.find("SphereRadius")) - { - size_t iBeginIndex = strText.find_first_of("="); - m_fRadius = stof(strText.substr(iBeginIndex + 1)) / 100.f; - break; - } - } return S_OK; } @@ -803,12 +779,6 @@ _bool CModel::SaveAssimpModel(const _char* filename) } } - if(MODEL::ENVIROMENT == m_eType) - { - fwrite(&m_fRadius, sizeof(_float), 1, fp); - fwrite(&m_vRadiusOffset, sizeof(_float3), 1, fp); - } - fclose(fp); return true; @@ -1109,11 +1079,6 @@ _bool CModel::LoadData(const _char* filename) NewModel.Materials.push_back(mat); } - if(MODEL::ENVIROMENT == m_eType) - { - fread(&m_fRadius, sizeof(_float), 1, fp); - fread(&m_vRadiusOffset, sizeof(_float3), 1, fp); - } fclose(fp);