From e29f6754e6f251a252a36a62dd7387523466d497 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Wed, 8 Nov 2023 14:33:22 +0100 Subject: [PATCH] Restore removed error check --- src/LayerPlanBuffer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/LayerPlanBuffer.cpp b/src/LayerPlanBuffer.cpp index 48437cb56c..d5a033a136 100644 --- a/src/LayerPlanBuffer.cpp +++ b/src/LayerPlanBuffer.cpp @@ -89,8 +89,8 @@ void LayerPlanBuffer::addConnectingTravelMove(LayerPlan* prev_layer, const Layer Point first_location_new_layer = new_layer_destination_state->first; - // assert(newest_layer->extruder_plans.front().paths[0].points.size() == 1); - // assert(newest_layer->extruder_plans.front().paths[0].points[0] == first_location_new_layer); + assert(newest_layer->extruder_plans.front().paths[0].points.size() == 1); + assert(newest_layer->extruder_plans.front().paths[0].points[0] == first_location_new_layer); // if the last planned position in the previous layer isn't the same as the first location of the new layer, travel to the new location if (! prev_layer->last_planned_position || *prev_layer->last_planned_position != first_location_new_layer)