Skip to content

Commit

Permalink
Fixed avoiding of other printed objects
Browse files Browse the repository at this point in the history
Calling std::move on itself causes that the first polygon is empty, which results in disabling this feature
  • Loading branch information
hejllukas committed Oct 6, 2020
1 parent 1c43c9b commit 6ed25f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libslic3r/GCode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ namespace Slic3r {
polygons_per_layer[i * 2] = union_(polys);
}
});
for (size_t i = 0; i < cnt / 2; ++i)
for (size_t i = 1; i < cnt / 2; ++i)
polygons_per_layer[i] = std::move(polygons_per_layer[i * 2]);
if (cnt & 1)
polygons_per_layer[cnt / 2] = std::move(polygons_per_layer[cnt - 1]);
Expand Down

0 comments on commit 6ed25f6

Please sign in to comment.