Add locking mechanism to prevent updating transform/parent
This commit is contained in:
@@ -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();
|
||||
}
|
||||
Reference in New Issue
Block a user