mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 07:27:41 -06:00
FIX: empty reference image of first layer
This is caused by the new layer 0 of custom extrusions. Change-Id: Ie1fe5aac65f908b90a7505db6ae3deb279247007
This commit is contained in:
parent
15ccd3661e
commit
cd315d0888
1 changed files with 5 additions and 2 deletions
|
@ -1475,9 +1475,12 @@ void GCodeViewer::render_calibration_thumbnail(ThumbnailData& thumbnail_data, un
|
|||
}
|
||||
}
|
||||
set_view_type(EViewType::FilamentId, false);
|
||||
// set m_layers_z_range to 0, 0
|
||||
// set m_layers_z_range to 0, 1;
|
||||
// To be safe, we include both layers here although layer 1 seems enough
|
||||
// layer 0: custom extrusions such as flow calibration etc.
|
||||
// layer 1: the real first layer of object
|
||||
std::array<unsigned int, 2> tmp_layers_z_range = m_layers_z_range;
|
||||
m_layers_z_range = {0, 0};
|
||||
m_layers_z_range = {0, 1};
|
||||
// BBS exclude feature types
|
||||
m_extrusions.role_visibility_flags = m_extrusions.role_visibility_flags & ~(1 << erSkirt);
|
||||
m_extrusions.role_visibility_flags = m_extrusions.role_visibility_flags & ~(1 << erCustom);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue