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-9d2fd5bffc1fpull/1/head
parent
027e6e7453
commit
bbca6ce865
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue