Update EmbedTexturesProcess.cpp

Replace c-cast by static_cast.
This commit is contained in:
Kim Kulling
2018-03-20 21:52:42 +01:00
committed by GitHub
parent 339e33303e
commit b01594f6a8

View File

@@ -134,7 +134,7 @@ bool EmbedTexturesProcess::addTexture(aiScene* pScene, std::string path) const {
// Add the new texture
auto pTexture = new aiTexture();
pTexture->mHeight = 0; // Means that this is still compressed
pTexture->mWidth = uint32_t(imageSize);
pTexture->mWidth = static_cats<uint32_t>(imageSize);
pTexture->pcData = imageContent;
auto extension = path.substr(path.find_last_of('.') + 1u);