Fix of Perl unit tests.

This commit is contained in:
bubnikv 2018-10-24 17:20:15 +02:00
parent 540a94b36d
commit 806e59facc

View File

@ -407,9 +407,12 @@ void Print::add_model_object(ModelObject* model_object, int idx)
} else } else
m_objects.emplace_back(object); m_objects.emplace_back(object);
// Invalidate all print steps. // Invalidate all print steps.
//FIXME lock mutex!
this->invalidate_all_steps(); 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; size_t volume_id = 0;
for (const ModelVolume *volume : model_object->volumes) { for (const ModelVolume *volume : model_object->volumes) {
if (! volume->is_model_part() && ! volume->is_modifier()) if (! volume->is_model_part() && ! volume->is_modifier())