File orca-slicer-fix-broken-assertions.patch of Package orca-slicer
From def66407019b28d86001dfda3a8068a4c08bda59 Mon Sep 17 00:00:00 2001
From: Adam Johnston <adam.johnston00@gmail.com>
Date: Fri, 13 Dec 2024 19:17:20 -0800
Subject: [PATCH] Fix some broken assertions (#7716)
Fix broken asserts
---
src/libslic3r/Algorithm/LineSplit.cpp | 2 +-
src/libslic3r/Model.cpp | 2 +-
src/libslic3r/PrintConfig.cpp | 1 +
3 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/libslic3r/Algorithm/LineSplit.cpp b/src/libslic3r/Algorithm/LineSplit.cpp
index c532e0834..f63033c02 100644
--- a/src/libslic3r/Algorithm/LineSplit.cpp
+++ b/src/libslic3r/Algorithm/LineSplit.cpp
@@ -264,7 +264,7 @@ SplittedLine do_split_line(const ClipperZUtils::ZPath& path, const ExPolygons& c
}
for (const auto segment : node) {
for (const ClipperZUtils::ZPoint& sp : *segment) {
- assert(!is_clip(sp.z()));
+ assert(!is_clip(sp));
result.emplace_back(to_point(sp), true, sp.z());
}
result.back().clipped = false; // Mark the end of the clipped line
diff --git a/src/libslic3r/Model.cpp b/src/libslic3r/Model.cpp
index fe8ff6101..d1e6d9b3b 100644
--- a/src/libslic3r/Model.cpp
+++ b/src/libslic3r/Model.cpp
@@ -2785,7 +2785,7 @@ std::vector<size_t> ModelVolume::get_extruders_from_multi_material_painting() co
if (!this->is_mm_painted())
return {};
- assert(static_cast<size_t>(TriangleStateType::Extruder1) - 1 == 0);
+ assert(static_cast<size_t>(EnforcerBlockerType::Extruder1) - 1 == 0);
const TriangleSelector::TriangleSplittingData &data = this->mmu_segmentation_facets.get_data();
std::vector<size_t> extruders;
diff --git a/src/libslic3r/PrintConfig.cpp b/src/libslic3r/PrintConfig.cpp
index b93e7920d..753d8bc02 100644
--- a/src/libslic3r/PrintConfig.cpp
+++ b/src/libslic3r/PrintConfig.cpp
@@ -5434,6 +5434,7 @@ void PrintConfigDef::init_extruder_option_keys()
"retract_lift_above",
"retract_lift_below",
"retract_lift_enforce",
+ "retract_on_top_layer",
"retract_restart_extra",
"retract_when_changing_layer",
"retraction_distances_when_cut",
--
2.47.1