Fix of Perl unit tests.
This commit is contained in:
parent
540a94b36d
commit
806e59facc
@ -407,9 +407,12 @@ void Print::add_model_object(ModelObject* model_object, int idx)
|
||||
} else
|
||||
m_objects.emplace_back(object);
|
||||
// Invalidate all print steps.
|
||||
//FIXME lock mutex!
|
||||
this->invalidate_all_steps();
|
||||
|
||||
// Set the transformation matrix without translation from the first instance.
|
||||
if (! model_object->instances.empty())
|
||||
object->set_trafo(model_object->instances.front()->world_matrix(true));
|
||||
|
||||
size_t volume_id = 0;
|
||||
for (const ModelVolume *volume : model_object->volumes) {
|
||||
if (! volume->is_model_part() && ! volume->is_modifier())
|
||||
|
Loading…
Reference in New Issue
Block a user