mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 20:03:47 +00:00
Fix of Perl unit tests.
This commit is contained in:
@@ -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())
|
||||||
|
|||||||
Reference in New Issue
Block a user