mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
Fix of Perl unit tests.
This commit is contained in:
parent
540a94b36d
commit
806e59facc
1 changed files with 4 additions and 1 deletions
|
@ -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())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue