Fix aligned seam when sequential printing is enabled
This commit is contained in:
parent
613f961b9f
commit
bd2cbea202
@ -786,16 +786,16 @@ void SeamPlacer::apply_custom_seam(const Polygon& polygon, size_t po_idx,
|
||||
|
||||
std::optional<Point> SeamHistory::get_last_seam(const PrintObject* po, size_t layer_id, const BoundingBox& island_bb)
|
||||
{
|
||||
assert(layer_id >= m_layer_id);
|
||||
if (layer_id > m_layer_id) {
|
||||
assert(layer_id >= m_layer_id || layer_id == 0);
|
||||
if (layer_id != m_layer_id) {
|
||||
// Get seam was called for different layer than last time.
|
||||
if (layer_id == 0) // seq printing
|
||||
m_data_this_layer.clear();
|
||||
m_data_last_layer = m_data_this_layer;
|
||||
m_data_this_layer.clear();
|
||||
m_layer_id = layer_id;
|
||||
}
|
||||
|
||||
|
||||
|
||||
std::optional<Point> out;
|
||||
|
||||
auto seams_it = m_data_last_layer.find(po);
|
||||
|
Loading…
Reference in New Issue
Block a user