mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-03 04:20:37 +08:00
Fixed duplication of auxiliary volumes when GLCanvas3D::reload_scene() is called for SLA printers
This commit is contained in:
parent
760f74ce6a
commit
e585fd2221
@ -603,6 +603,7 @@ void GLVolumeCollection::load_object_auxiliary(
|
||||
};
|
||||
|
||||
// Get the support mesh.
|
||||
if (milestone == SLAPrintObjectStep::slaposSupportTree) {
|
||||
TriangleMesh supports_mesh = print_object->support_mesh();
|
||||
if (!supports_mesh.empty()) {
|
||||
supports_mesh.transform(mesh_trafo_inv);
|
||||
@ -612,8 +613,10 @@ void GLVolumeCollection::load_object_auxiliary(
|
||||
add_volume(obj_idx, (int)instance_idx.first, model_instance, slaposSupportTree, supports_mesh, GLVolume::SLA_SUPPORT_COLOR, convex_hull);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Get the pad mesh.
|
||||
if (milestone == SLAPrintObjectStep::slaposPad) {
|
||||
TriangleMesh pad_mesh = print_object->pad_mesh();
|
||||
if (!pad_mesh.empty()) {
|
||||
pad_mesh.transform(mesh_trafo_inv);
|
||||
@ -624,6 +627,7 @@ void GLVolumeCollection::load_object_auxiliary(
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
GLVolume* GLVolumeCollection::new_toolpath_volume(const ColorRGBA& rgba)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user