diff --git a/src/libslic3r/TreeModelVolumes.cpp b/src/libslic3r/TreeModelVolumes.cpp index 399685e9c..e14ec5a69 100644 --- a/src/libslic3r/TreeModelVolumes.cpp +++ b/src/libslic3r/TreeModelVolumes.cpp @@ -359,7 +359,7 @@ const Polygons& TreeModelVolumes::getCollision(const coord_t orig_radius, LayerI BOOST_LOG_TRIVIAL(error_level_not_in_cache) << "Had to calculate collision at radius " << radius << " and layer " << layer_idx << ", but precalculate was called. Performance may suffer!"; tree_supports_show_error("Not precalculated Collision requested."sv, false); } - const_cast(this)->calculateCollision(radius, layer_idx, {}); + const_cast(this)->calculateCollision(radius, layer_idx, []{}); return getCollision(orig_radius, layer_idx, min_xy_dist); } diff --git a/src/libslic3r/TreeModelVolumes.hpp b/src/libslic3r/TreeModelVolumes.hpp index f5b5669bb..139b12328 100644 --- a/src/libslic3r/TreeModelVolumes.hpp +++ b/src/libslic3r/TreeModelVolumes.hpp @@ -512,7 +512,7 @@ private: */ void calculateCollisionHolefree(RadiusLayerPair key) { - calculateCollisionHolefree(std::vector{ RadiusLayerPair(key) }, {}); + calculateCollisionHolefree(std::vector{ RadiusLayerPair(key) }, []{}); } /*! @@ -533,7 +533,7 @@ private: */ void calculateAvoidance(RadiusLayerPair key, bool to_build_plate, bool to_model) { - calculateAvoidance(std::vector{ RadiusLayerPair(key) }, to_build_plate, to_model, {}); + calculateAvoidance(std::vector{ RadiusLayerPair(key) }, to_build_plate, to_model, []{}); } /*! @@ -567,7 +567,7 @@ private: */ void calculateWallRestrictions(RadiusLayerPair key) { - calculateWallRestrictions(std::vector{ RadiusLayerPair(key) }, {}); + calculateWallRestrictions(std::vector{ RadiusLayerPair(key) }, []{}); } /*!