Procházet zdrojové kódy

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
aramis_acg před 15 roky
rodič
revize
cd301ff090
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      code/ColladaParser.cpp

+ 1 - 1
code/ColladaParser.cpp

@@ -1713,7 +1713,7 @@ void ColladaParser::ReadAccessor( const std::string& pID)
 
 
 				// read data type
 				// read data type
 				int attrType = TestAttribute( "type");
 				int attrType = TestAttribute( "type");
-				if( attrType)
+				if( attrType > -1)
 				{
 				{
 					// for the moment we only distinguish between a 4x4 matrix and anything else. 
 					// 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
 					// TODO: (thom) I don't have a spec here at work. Check if there are other multi-value types