1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-12 08:14:26 +00:00

Fixed avoiding of other printed objects

Calling std::move on itself causes that the first polygon is empty, which results in disabling this feature
This commit is contained in:
Lukáš Hejl
2020-10-06 13:19:39 +02:00
parent 1c43c9b4e1
commit 6ed25f6e1c
+1 -1
View File
@@ -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]);