Skip to content

Commit

Permalink
Fix some broken assertions (#7716)
Browse files Browse the repository at this point in the history
Fix broken asserts
  • Loading branch information
a-johnston authored Dec 14, 2024
1 parent 5ec57d6 commit 97c60be
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/libslic3r/Algorithm/LineSplit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/libslic3r/Model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/libslic3r/PrintConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5440,9 +5440,9 @@ 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",
"retract_on_top_layer",
"retraction_distances_when_cut",
"retraction_length",
"retraction_minimum_travel",
Expand Down

0 comments on commit 97c60be

Please sign in to comment.