mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 02:07:36 +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();
|
unsigned parentsNumber = it->parents.size();
|
||||||
bool finished = false;
|
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)
|
while (!finished)
|
||||||
{
|
{
|
||||||
// If we need to add a parent
|
// If we need to add a parent
|
||||||
|
|||||||
Reference in New Issue
Block a user