浏览代码

Merge pull request #1734 from carmenfan/master

GetEmbeddedTexture should be a const function
Kim Kulling 7 年之前
父节点
当前提交
f80dbe2046
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/assimp/scene.h

+ 1 - 1
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());