diff --git a/src/libslic3r/Fill/Fill.cpp b/src/libslic3r/Fill/Fill.cpp index 40650c509..02f613c15 100644 --- a/src/libslic3r/Fill/Fill.cpp +++ b/src/libslic3r/Fill/Fill.cpp @@ -514,9 +514,9 @@ void Layer::make_fills(FillAdaptive::Octree* adaptive_fill_octree, FillAdaptive: } if (surface_fill.params.pattern == ipEnsuring) { - auto *fill_bounded_rectilinear = dynamic_cast(f.get()); - assert(fill_bounded_rectilinear != nullptr); - fill_bounded_rectilinear->print_region_config = &m_regions[surface_fill.region_id]->region().config(); + auto *fill_ensuring = dynamic_cast(f.get()); + assert(fill_ensuring != nullptr); + fill_ensuring->print_region_config = &m_regions[surface_fill.region_id]->region().config(); } // calculate flow spacing for infill pattern generation diff --git a/src/libslic3r/Fill/FillEnsuring.cpp b/src/libslic3r/Fill/FillEnsuring.cpp index 0dab6d744..2522aee93 100644 --- a/src/libslic3r/Fill/FillEnsuring.cpp +++ b/src/libslic3r/Fill/FillEnsuring.cpp @@ -25,7 +25,6 @@ ThickPolylines FillEnsuring::fill_surface_arachne(const Surface *surface, const Polygons polygons = to_polygons(ex_poly); Arachne::WallToolPaths wall_tool_paths(polygons, scaled_spacing, scaled_spacing, loops_count, 0, params.layer_height, *this->print_object_config, *this->print_config); if (std::vector loops = wall_tool_paths.getToolPaths(); !loops.empty()) { - assert(!is_bounded_rectilinear || loops.size() == 1); std::vector all_extrusions; for (Arachne::VariableWidthLines &loop : loops) { if (loop.empty()) diff --git a/src/libslic3r/GCode/GCodeProcessor.cpp b/src/libslic3r/GCode/GCodeProcessor.cpp index 555aab0c1..71d723ca3 100644 --- a/src/libslic3r/GCode/GCodeProcessor.cpp +++ b/src/libslic3r/GCode/GCodeProcessor.cpp @@ -2402,7 +2402,7 @@ void GCodeProcessor::process_G1(const GCodeReader::GCodeLine& line) if (m_forced_height > 0.0f) m_height = m_forced_height; else if (m_layer_id == 0) - m_height = std::min((float)m_end_position[Z], m_first_layer_height + m_z_offset); + m_height = m_first_layer_height + m_z_offset; else if (line.comment() != INTERNAL_G2G3_TAG){ if (m_end_position[Z] > m_extruded_last_z + EPSILON && delta_pos[Z] == 0.0) m_height = m_end_position[Z] - m_extruded_last_z; diff --git a/src/libslic3r/Slicing.cpp b/src/libslic3r/Slicing.cpp index 27c6b8ec3..a0fe3e662 100644 --- a/src/libslic3r/Slicing.cpp +++ b/src/libslic3r/Slicing.cpp @@ -31,7 +31,7 @@ inline coordf_t min_layer_height_from_nozzle(const PrintConfig &print_config, in return (min_layer_height == 0.) ? MIN_LAYER_HEIGHT_DEFAULT : std::max(MIN_LAYER_HEIGHT, min_layer_height); } -// Maximum layer height for the variable layer height algorithm, 3/4 of a nozzle dimaeter by default, +// Maximum layer height for the variable layer height algorithm, 3/4 of a nozzle diameter by default, // it should not be smaller than the minimum layer height. inline coordf_t max_layer_height_from_nozzle(const PrintConfig &print_config, int idx_nozzle) { @@ -48,7 +48,7 @@ coordf_t Slicing::min_layer_height_from_nozzle(const DynamicPrintConfig &print_c return (min_layer_height == 0.) ? MIN_LAYER_HEIGHT_DEFAULT : std::max(MIN_LAYER_HEIGHT, min_layer_height); } -// Maximum layer height for the variable layer height algorithm, 3/4 of a nozzle dimaeter by default, +// Maximum layer height for the variable layer height algorithm, 3/4 of a nozzle diameter by default, // it should not be smaller than the minimum layer height. coordf_t Slicing::max_layer_height_from_nozzle(const DynamicPrintConfig &print_config, int idx_nozzle) {