- added a workaround to load Collada files correctly in case the "texcoord" attribute was missing in a <texture> element
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1303 67173fc5-114c-0410-ac8e-9d2fd5bffc1fpull/6/merge
parent
2944e7b210
commit
54a5088e14
|
@ -1370,7 +1370,8 @@ void ColladaParser::ReadEffectColor( aiColor4D& pColor, Sampler& pSampler)
|
|||
pSampler.mName = mReader->getAttributeValue( attrTex);
|
||||
|
||||
// get name of UV source channel
|
||||
attrTex = GetAttribute( "texcoord");
|
||||
attrTex = TestAttribute( "texcoord");
|
||||
if( attrTex >= 0 )
|
||||
pSampler.mUVChannel = mReader->getAttributeValue( attrTex);
|
||||
//SkipElement();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue