Fixed build warnings on MSVC14 x64 in some scene optimisations.

This commit is contained in:
Jared Mulconry
2016-11-20 13:04:56 +11:00
parent 48e542d8d4
commit 3e08a47d4f
2 changed files with 4 additions and 4 deletions

View File

@@ -230,7 +230,7 @@ void OptimizeGraphProcess::CollectNewChildren(aiNode* nd, std::list<aiNode*>& no
else nd->mChildren = NULL;
}
nd->mNumChildren = child_nodes.size();
nd->mNumChildren = static_cast<unsigned int>(child_nodes.size());
aiNode** tmp = nd->mChildren;
for (std::list<aiNode*>::iterator it = child_nodes.begin(); it != child_nodes.end(); ++it) {
@@ -238,7 +238,7 @@ void OptimizeGraphProcess::CollectNewChildren(aiNode* nd, std::list<aiNode*>& no
node->mParent = nd;
}
nodes_out += child_nodes.size();
nodes_out += static_cast<unsigned int>(child_nodes.size());
}
// ------------------------------------------------------------------------------------------------