Suppressed MSVC++ warning C4267

'=': conversion from 'size_t' to 'ai_uint32', possible loss of data
This commit is contained in:
Matthias Moulin
2020-01-16 18:31:44 +01:00
committed by GitHub
parent bdc10aa336
commit 986c18501a

View File

@@ -211,7 +211,7 @@ aiNode* XFileImporter::CreateNodes( aiScene* pScene, aiNode* pParent, const XFil
// create node
aiNode* node = new aiNode;
node->mName.length = pNode->mName.length();
node->mName.length = (ai_uint32)pNode->mName.length();
node->mParent = pParent;
memcpy( node->mName.data, pNode->mName.c_str(), pNode->mName.length());
node->mName.data[node->mName.length] = 0;