From 5b948e9cca2f4627e2a6df8a0e4558575f804408 Mon Sep 17 00:00:00 2001 From: carmenfan Date: Wed, 24 Jan 2018 11:32:58 +0000 Subject: [PATCH] add const to GetEmbeddedTexture --- include/assimp/scene.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/assimp/scene.h b/include/assimp/scene.h index 82b38797e..2533f1a66 100644 --- a/include/assimp/scene.h +++ b/include/assimp/scene.h @@ -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());