From f44e57d335d38e5c9008fb5693996b31878b6123 Mon Sep 17 00:00:00 2001 From: YuSanka Date: Thu, 8 Dec 2022 14:00:53 +0100 Subject: [PATCH] Fix for: Not printable text volume after update is set as printable (#SPE-1384, https://dev.prusa3d.com/browse/SPE-1384) --- src/slic3r/GUI/3DScene.cpp | 2 ++ src/slic3r/GUI/Jobs/EmbossJob.cpp | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/slic3r/GUI/3DScene.cpp b/src/slic3r/GUI/3DScene.cpp index 27a67001ec..b004938021 100644 --- a/src/slic3r/GUI/3DScene.cpp +++ b/src/slic3r/GUI/3DScene.cpp @@ -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(mesh); diff --git a/src/slic3r/GUI/Jobs/EmbossJob.cpp b/src/slic3r/GUI/Jobs/EmbossJob.cpp index 0e7db94e87..a987e5b77c 100644 --- a/src/slic3r/GUI/Jobs/EmbossJob.cpp +++ b/src/slic3r/GUI/Jobs/EmbossJob.cpp @@ -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();