Fix for: Not printable text volume after update is set as printable

(#SPE-1384, https://dev.prusa3d.com/browse/SPE-1384)
This commit is contained in:
YuSanka 2022-12-08 14:00:53 +01:00
parent 35baa70be0
commit f44e57d335
2 changed files with 2 additions and 4 deletions

View file

@ -448,6 +448,8 @@ int GLVolumeCollection::load_object_volume(
this->volumes.emplace_back(new GLVolume());
GLVolume& v = *this->volumes.back();
v.set_color(color_from_model_volume(*model_volume));
// apply printable value from the instance
v.printable = instance->printable;
#if ENABLE_SMOOTH_NORMALS
v.model.init_from(*mesh, true);
v.mesh_raycaster = std::make_unique<GUI::MeshRaycaster>(mesh);

View file

@ -527,10 +527,6 @@ void UpdateJob::update_volume(ModelVolume *volume,
obj_list->update_name_in_list(object_idx, volume_idx);
}
// update printable state on canvas
if (volume->type() == ModelVolumeType::MODEL_PART)
canvas->update_instance_printable_state_for_object((size_t) object_idx);
// Move object on bed
if (GLGizmoEmboss::is_text_object(volume)) volume->get_object()->ensure_on_bed();