mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 08:45:52 +08:00
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:
parent
35baa70be0
commit
f44e57d335
@ -448,6 +448,8 @@ int GLVolumeCollection::load_object_volume(
|
|||||||
this->volumes.emplace_back(new GLVolume());
|
this->volumes.emplace_back(new GLVolume());
|
||||||
GLVolume& v = *this->volumes.back();
|
GLVolume& v = *this->volumes.back();
|
||||||
v.set_color(color_from_model_volume(*model_volume));
|
v.set_color(color_from_model_volume(*model_volume));
|
||||||
|
// apply printable value from the instance
|
||||||
|
v.printable = instance->printable;
|
||||||
#if ENABLE_SMOOTH_NORMALS
|
#if ENABLE_SMOOTH_NORMALS
|
||||||
v.model.init_from(*mesh, true);
|
v.model.init_from(*mesh, true);
|
||||||
v.mesh_raycaster = std::make_unique<GUI::MeshRaycaster>(mesh);
|
v.mesh_raycaster = std::make_unique<GUI::MeshRaycaster>(mesh);
|
||||||
|
@ -527,10 +527,6 @@ void UpdateJob::update_volume(ModelVolume *volume,
|
|||||||
obj_list->update_name_in_list(object_idx, volume_idx);
|
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
|
// Move object on bed
|
||||||
if (GLGizmoEmboss::is_text_object(volume)) volume->get_object()->ensure_on_bed();
|
if (GLGizmoEmboss::is_text_object(volume)) volume->get_object()->ensure_on_bed();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user