- 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,8 +1370,9 @@ void ColladaParser::ReadEffectColor( aiColor4D& pColor, Sampler& pSampler)
|
||||||
pSampler.mName = mReader->getAttributeValue( attrTex);
|
pSampler.mName = mReader->getAttributeValue( attrTex);
|
||||||
|
|
||||||
// get name of UV source channel
|
// get name of UV source channel
|
||||||
attrTex = GetAttribute( "texcoord");
|
attrTex = TestAttribute( "texcoord");
|
||||||
pSampler.mUVChannel = mReader->getAttributeValue( attrTex);
|
if( attrTex >= 0 )
|
||||||
|
pSampler.mUVChannel = mReader->getAttributeValue( attrTex);
|
||||||
//SkipElement();
|
//SkipElement();
|
||||||
}
|
}
|
||||||
else if( IsElement( "technique"))
|
else if( IsElement( "technique"))
|
||||||
|
|
Loading…
Reference in New Issue