Add locking mechanism to prevent updating transform/parent

This commit is contained in:
Godzil
2020-03-10 13:55:27 +00:00
parent 5da0c10182
commit 441d758845
9 changed files with 95 additions and 7 deletions

View File

@@ -99,7 +99,7 @@ void OBJFile::addGroup(Group *group)
{
this->baseGroup->addObject(group);
group->parent = this;
group->setParent(this);
group->updateTransform();
this->bounds | group->getBounds();
@@ -461,3 +461,10 @@ int OBJFile::execLine(int argc, char *argv[], uint32_t currentLine)
}
return ret;
}
void OBJFile::lock()
{
Shape::lock();
this->baseGroup->lock();
}