Fixed update of ModelObject / ModelVolume configs on Print,

fixed some compiler warnings.
This commit is contained in:
bubnikv 2018-11-09 14:25:18 +01:00
parent 0555fb4bcc
commit 3075e7f40f
3 changed files with 41 additions and 12 deletions

View file

@ -497,7 +497,7 @@ using ShapeData2D =
ShapeData2D projectModelFromTop(const Slic3r::Model &model) {
ShapeData2D ret;
auto s = std::accumulate(model.objects.begin(), model.objects.end(), 0,
auto s = std::accumulate(model.objects.begin(), model.objects.end(), size_t(0),
[](size_t s, ModelObject* o){
return s + o->instances.size();
});