浏览代码

Fixed a small bug in aiGetMaterialTexture

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@244 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
aramis_acg 17 年之前
父节点
当前提交
01ceeeb00b
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      code/MaterialSystem.cpp

+ 1 - 2
code/MaterialSystem.cpp

@@ -461,8 +461,7 @@ aiReturn aiGetMaterialTexture(const C_STRUCT aiMaterial* mat,
 	ai_assert(NULL != mat && NULL != path);
 	ai_assert(NULL != mat && NULL != path);
 
 
 	// Get the path to the texture
 	// Get the path to the texture
-	aiString string;
-	if (AI_SUCCESS != aiGetMaterialString(mat,AI_MATKEY_TEXTURE(type,index),&string))
+	if (AI_SUCCESS != aiGetMaterialString(mat,AI_MATKEY_TEXTURE(type,index),path))
 	{
 	{
 		return AI_FAILURE;
 		return AI_FAILURE;
 	}
 	}