Skip to content

Commit

Permalink
- Bugfix: Collada loader writes "zero transparency" to material now
Browse files Browse the repository at this point in the history
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1202 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
  • Loading branch information
ulfjorensen committed Mar 16, 2012
1 parent b908b00 commit f633437
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/ColladaLoader.cpp
Expand Up @@ -1242,7 +1242,7 @@ void ColladaLoader::FillMaterials( const ColladaParser& pParser, aiScene* /*pSce

// transparency, a very hard one. seemingly not all files are following the
// specification here .. but we can trick.
if (effect.mTransparency > 0.f && effect.mTransparency < 1.f) {
if (effect.mTransparency >= 0.f && effect.mTransparency < 1.f) {
effect.mTransparency = 1.f- effect.mTransparency;
mat.AddProperty( &effect.mTransparency, 1, AI_MATKEY_OPACITY );
mat.AddProperty( &effect.mTransparent, 1, AI_MATKEY_COLOR_TRANSPARENT );
Expand Down

0 comments on commit f633437

Please sign in to comment.