Fix : Handle the case where the first representation element has 0 parent

This commit is contained in:
Balleux Benjamin
2017-05-16 15:01:55 +02:00
parent 942d34ee39
commit 5c497c8f6c
+4
View File
@@ -594,6 +594,10 @@ void ColladaSerializer::ColladaExporter::endDocument() {
{
unsigned parentsNumber = it->parents.size();
bool finished = false;
// If we have no parent in the stack and the object has no parent, nothing to do : skip the loop
if (parentsNumber == 0 && serializer->parentStackId.size() == 0) { finished = true; }
while (!finished)
{
// If we need to add a parent