FIX: add wipe tower for arrangement when timelapse_type is smooth
JIRA: STUDIO-4179 Change-Id: I45056a1b3d7316816b4919cd8185f914d6ad16f4 (cherry picked from commit bad658a228b3697ff1cbdbc45e038641cc5e3e24)
This commit is contained in:
parent
ca3a196ec6
commit
76dda23702
|
@ -1125,8 +1125,7 @@ private:
|
|||
for (const Item &item : config_.m_excluded_regions) { excludes.push_back(item.transformedShape()); }
|
||||
for (const Item &item : items_) {
|
||||
if (item.isFixed()) {
|
||||
if (!(item.is_wipe_tower && !need_wipe_tower))
|
||||
excludes.push_back(item.transformedShape());
|
||||
excludes.push_back(item.transformedShape());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -259,6 +259,11 @@ void ArrangeJob::prepare_wipe_tower()
|
|||
auto op = current_config.option("enable_prime_tower");
|
||||
if (op && op->getBool() == false || params.is_seq_print) return;
|
||||
|
||||
bool smooth_timelapse = false;
|
||||
auto sop = current_config.option("timelapse_type");
|
||||
if (sop) { smooth_timelapse = sop->getInt() == TimelapseType::tlSmooth; }
|
||||
if (smooth_timelapse) { need_wipe_tower = true; }
|
||||
|
||||
// estimate if we need wipe tower for all plates:
|
||||
// need wipe tower if some object has multiple extruders (has paint-on colors or support material)
|
||||
for (const auto &item : m_selected) {
|
||||
|
|
Loading…
Reference in New Issue