mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-17 09:15:52 +08:00
Whoops, need to call reserve() instead of passing 100 to the constructor.
This commit is contained in:
parent
048c52cafd
commit
1a94921462
@ -186,7 +186,8 @@ PrintGCode::output()
|
||||
p.emplace_back(obj->_shifted_copies.at(0));
|
||||
Geometry::chained_path(p, obj_idx);
|
||||
|
||||
std::vector<size_t> z(100); // preallocate with 100 layers
|
||||
std::vector<size_t> z;
|
||||
z.reserve(100); // preallocate with 100 layers
|
||||
std::map<coord_t, LayerPtrs> layers {};
|
||||
for (size_t idx = 0U; idx < print.objects.size(); ++idx) {
|
||||
const auto& object {*(objects.at(idx))};
|
||||
|
Loading…
x
Reference in New Issue
Block a user