Fix g++ specific compiler warning: Usage of temporary object.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@817 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
pull/1/head
kimmi 2010-09-15 20:29:48 +00:00
parent 027e6e7453
commit bbca6ce865
1 changed files with 2 additions and 2 deletions

View File

@ -1117,8 +1117,8 @@ void ColladaLoader::AddTexture ( Assimp::MaterialHelper& mat, const ColladaParse
aiTextureType type, unsigned int idx)
{
// first of all, basic file name
mat.AddProperty( &FindFilenameForEffectTexture( pParser, effect, sampler.mName),
_AI_MATKEY_TEXTURE_BASE,type,idx);
const aiString name = FindFilenameForEffectTexture( pParser, effect, sampler.mName );
mat.AddProperty( &name, _AI_MATKEY_TEXTURE_BASE, type, idx );
// mapping mode
int map = aiTextureMapMode_Clamp;