add const to GetEmbeddedTexture

pull/1734/head
carmenfan 2018-01-24 11:32:58 +00:00
parent 1b1d1e7376
commit 5b948e9cca
1 changed files with 1 additions and 1 deletions

View File

@ -387,7 +387,7 @@ struct aiScene
}
//! Returns an embedded texture
const aiTexture* GetEmbeddedTexture(const char* filename) {
const aiTexture* GetEmbeddedTexture(const char* filename) const {
const char* shortFilename = GetShortFilename(filename);
for (unsigned int i = 0; i < mNumTextures; i++) {
const char* shortTextureFilename = GetShortFilename(mTextures[i]->mFilename.C_Str());