Fix: C4267
parent
85b9e36c2d
commit
b4425d8e36
|
@ -251,7 +251,7 @@ void ObjFileImporter::CreateDataFromImport(const ObjFile::Model* pModel, aiScene
|
||||||
|
|
||||||
std::unique_ptr<aiMesh> mesh( new aiMesh );
|
std::unique_ptr<aiMesh> mesh( new aiMesh );
|
||||||
mesh->mPrimitiveTypes = aiPrimitiveType_POINT;
|
mesh->mPrimitiveTypes = aiPrimitiveType_POINT;
|
||||||
unsigned int n = pModel->m_Vertices.size();
|
unsigned int n = (unsigned int)pModel->m_Vertices.size();
|
||||||
mesh->mNumVertices = n;
|
mesh->mNumVertices = n;
|
||||||
|
|
||||||
mesh->mVertices = new aiVector3D[n];
|
mesh->mVertices = new aiVector3D[n];
|
||||||
|
|
Loading…
Reference in New Issue