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

This commit is contained in:
Godzil
2020-03-11 16:57:49 +00:00
parent 13cc2c0ff9
commit c667ce26d7

View File

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