mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-13 10:57:49 +00:00
Fix : Handle the case where the first representation element has 0 parent
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user