From cd301ff090ef948c930bb0feec7f502a029071f6 Mon Sep 17 00:00:00 2001 From: aramis_acg Date: Fri, 21 May 2010 22:47:31 +0000 Subject: [PATCH] collada loader now longer fails if the accessor type attribute comes before the accessor name. Thanks to Christopher Dissauer to point it out (http://sourceforge.net/projects/assimp/forums/forum/817653/topic/3716168). git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@733 67173fc5-114c-0410-ac8e-9d2fd5bffc1f --- code/ColladaParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/ColladaParser.cpp b/code/ColladaParser.cpp index 955e5bf3c..faf7aba36 100644 --- a/code/ColladaParser.cpp +++ b/code/ColladaParser.cpp @@ -1713,7 +1713,7 @@ void ColladaParser::ReadAccessor( const std::string& pID) // read data type int attrType = TestAttribute( "type"); - if( attrType) + if( attrType > -1) { // for the moment we only distinguish between a 4x4 matrix and anything else. // TODO: (thom) I don't have a spec here at work. Check if there are other multi-value types