소스 검색

fix for collada parser when importing empty arrays.

Exiting function so early break the parsing procedure, misses node closing and causes improper initialization of element (cannot be referenced later on)
George Papadopoulos 11 년 전
부모
커밋
284abbe9e1
1개의 변경된 파일0개의 추가작업 그리고 1개의 파일을 삭제
  1. 0 1
      code/ColladaParser.cpp

+ 0 - 1
code/ColladaParser.cpp

@@ -1660,7 +1660,6 @@ void ColladaParser::ReadDataArray()
 	std::string id = mReader->getAttributeValue( indexID);
 	int indexCount = GetAttribute( "count");
 	unsigned int count = (unsigned int) mReader->getAttributeValueAsInt( indexCount);
-	if (count == 0) { return; } // some exporters write empty data arrays with count="0"
 	const char* content = TestTextContent();
 
   // read values and store inside an array in the data library