Skip to content

Commit

Permalink
Fix of a crash with sequential print and raft. Fixes #9464
Browse files Browse the repository at this point in the history
  • Loading branch information
bubnikv committed Feb 3, 2023
1 parent 5b94971 commit 43dc3bf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/libslic3r/GCode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1784,9 +1784,7 @@ std::vector<GCode::InstanceToPrint> GCode::sort_print_object_instances(
if (ordering == nullptr) {
// Sequential print, single object is being printed.
assert(object_layers.size() == 1);
const Layer *layer = object_layers.front().object_layer;
assert(layer != nullptr);
out.emplace_back(0, *layer->object(), single_object_instance_idx);
out.emplace_back(0, *object_layers.front().object(), single_object_instance_idx);
} else {
// Create mapping from PrintObject* to ObjectLayerToPrint ID.
std::vector<std::pair<const PrintObject*, size_t>> sorted;
Expand Down

0 comments on commit 43dc3bf

Please sign in to comment.