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)
pull/210/head
George Papadopoulos 2013-12-20 11:36:35 +02:00
parent 6d630bec50
commit 284abbe9e1
1 changed files with 0 additions and 1 deletions

View File

@ -1660,7 +1660,6 @@ void ColladaParser::ReadDataArray()
std::string id = mReader->getAttributeValue( indexID); std::string id = mReader->getAttributeValue( indexID);
int indexCount = GetAttribute( "count"); int indexCount = GetAttribute( "count");
unsigned int count = (unsigned int) mReader->getAttributeValueAsInt( indexCount); 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(); const char* content = TestTextContent();
// read values and store inside an array in the data library // read values and store inside an array in the data library