diff --git a/code/DeboneProcess.cpp b/code/DeboneProcess.cpp index 5d688f813..41941b4ac 100644 --- a/code/DeboneProcess.cpp +++ b/code/DeboneProcess.cpp @@ -137,7 +137,7 @@ void DeboneProcess::Execute( aiScene* pScene) const aiString *find = newMeshes[b].second?&newMeshes[b].second->mName:0; aiNode *theNode = find?pScene->mRootNode->FindNode(*find):0; - std::pair push_pair(meshes.size(),theNode); + std::pair push_pair(static_cast(meshes.size()),theNode); mSubMeshIndices[a].push_back(push_pair); meshes.push_back(newMeshes[b].first); @@ -156,13 +156,13 @@ void DeboneProcess::Execute( aiScene* pScene) } else { // Mesh is kept unchanged - store it's new place in the mesh array - mSubMeshIndices[a].push_back(std::pair(meshes.size(),(aiNode*)0)); + mSubMeshIndices[a].push_back(std::pair(static_cast(meshes.size()),(aiNode*)0)); meshes.push_back(srcMesh); } } // rebuild the scene's mesh array - pScene->mNumMeshes = meshes.size(); + pScene->mNumMeshes = static_cast(meshes.size()); delete [] pScene->mMeshes; pScene->mMeshes = new aiMesh*[pScene->mNumMeshes]; std::copy( meshes.begin(), meshes.end(), pScene->mMeshes); @@ -382,7 +382,7 @@ void DeboneProcess::UpdateNode(aiNode* pNode) const // this will require two passes - unsigned int m = pNode->mNumMeshes, n = mSubMeshIndices.size(); + unsigned int m = static_cast(pNode->mNumMeshes), n = static_cast(mSubMeshIndices.size()); // first pass, look for meshes which have not moved @@ -390,7 +390,7 @@ void DeboneProcess::UpdateNode(aiNode* pNode) const unsigned int srcIndex = pNode->mMeshes[a]; const std::vector< std::pair< unsigned int,aiNode* > > &subMeshes = mSubMeshIndices[srcIndex]; - unsigned int nSubmeshes = subMeshes.size(); + unsigned int nSubmeshes = static_cast(subMeshes.size()); for(unsigned int b=0;b > &subMeshes = mSubMeshIndices[a]; - unsigned int nSubmeshes = subMeshes.size(); + unsigned int nSubmeshes = static_cast(subMeshes.size()); for(unsigned int b=0;bmMeshes; pNode->mMeshes = NULL; } - pNode->mNumMeshes = newMeshList.size(); + pNode->mNumMeshes = static_cast(newMeshList.size()); if(pNode->mNumMeshes) { pNode->mMeshes = new unsigned int[pNode->mNumMeshes];