Fix non ISO compliant use of ternary operator.
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@653 67173fc5-114c-0410-ac8e-9d2fd5bffc1fpull/1/head
parent
3c03e0fca5
commit
4d2d4a64e0
|
@ -335,9 +335,15 @@ aiNode* COBImporter::BuildNodes(const Node& root,const Scene& scin,aiScene* fill
|
|||
mat->AddProperty(&c,1,AI_MATKEY_COLOR_AMBIENT);
|
||||
|
||||
// convert textures if some exist.
|
||||
min->tex_color ? ConvertTexture(min->tex_color,mat,aiTextureType_DIFFUSE) : 0;
|
||||
min->tex_env ? ConvertTexture(min->tex_env ,mat,aiTextureType_UNKNOWN) : 0;
|
||||
min->tex_bump ? ConvertTexture(min->tex_bump ,mat,aiTextureType_HEIGHT ) : 0;
|
||||
if(min->tex_color) {
|
||||
ConvertTexture(min->tex_color,mat,aiTextureType_DIFFUSE);
|
||||
}
|
||||
if(min->tex_env) {
|
||||
ConvertTexture(min->tex_env ,mat,aiTextureType_UNKNOWN);
|
||||
}
|
||||
if(min->tex_bump) {
|
||||
ConvertTexture(min->tex_bump ,mat,aiTextureType_HEIGHT);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue