commit
f8d8a43a35
|
@ -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];
|
||||||
|
|
|
@ -454,7 +454,7 @@ void glTF2Importer::ImportMeshes(glTF2::Asset& r)
|
||||||
|
|
||||||
std::vector<Mesh::Primitive::Target>& targets = prim.targets;
|
std::vector<Mesh::Primitive::Target>& targets = prim.targets;
|
||||||
if (targets.size() > 0) {
|
if (targets.size() > 0) {
|
||||||
aim->mNumAnimMeshes = targets.size();
|
aim->mNumAnimMeshes = (unsigned int)targets.size();
|
||||||
aim->mAnimMeshes = new aiAnimMesh*[aim->mNumAnimMeshes];
|
aim->mAnimMeshes = new aiAnimMesh*[aim->mNumAnimMeshes];
|
||||||
for (size_t i = 0; i < targets.size(); i++) {
|
for (size_t i = 0; i < targets.size(); i++) {
|
||||||
aim->mAnimMeshes[i] = aiCreateAnimMesh(aim);
|
aim->mAnimMeshes[i] = aiCreateAnimMesh(aim);
|
||||||
|
|
Loading…
Reference in New Issue