From c667ce26d7fdeefdd2dd796290518726673f2945 Mon Sep 17 00:00:00 2001 From: Godzil Date: Wed, 11 Mar 2020 16:57:49 +0000 Subject: [PATCH] Fix a bug in objfile where OBJ file were not the parent of the base group. --- source/shapes/objfile.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/shapes/objfile.cpp b/source/shapes/objfile.cpp index 01b0f1e..f6727d9 100644 --- a/source/shapes/objfile.cpp +++ b/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()