Fixing the crash with large model.

This commit is contained in:
tamasmeszaros 2018-12-11 17:55:15 +01:00
parent 856d983863
commit 0f8658154b

View file

@ -1370,7 +1370,7 @@ bool SLASupportTree::generate(const PointSet &points,
add_base(cfg.base_height_mm, cfg.base_radius_mm);
// connects to ground, eligible for bridging
cl_centroids.emplace_back(sidehead.id);
cl_centroids.emplace_back(c);
} else {
// Creating the bridge to the nearest pillar