Browse Source

Fix a bug in objfile where OBJ file were not the parent of the base group.

Godzil 4 years ago
parent
commit
c667ce26d7
1 changed files with 1 additions and 0 deletions
  1. 1 0
      source/shapes/objfile.cpp

+ 1 - 0
source/shapes/objfile.cpp

@@ -37,6 +37,7 @@ OBJFile::OBJFile() : Shape(Shape::OBJFILE), ignoredLines(0)
     /* The base group */
     this->baseGroup = new Group(OBJ_DEFAULT_GROUP);
     this->currentGroup = this->baseGroup;
+    this->baseGroup->parent = this;
 };
 
 OBJFile::~OBJFile()