From e6244f7bdbcbd800c8d36cefdca5c6ba159a9d45 Mon Sep 17 00:00:00 2001 From: tamasmeszaros Date: Tue, 14 Jan 2020 10:24:15 +0100 Subject: [PATCH] Eliminate use of uninitialized variable. --- src/libslic3r/SLA/SupportPointGenerator.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libslic3r/SLA/SupportPointGenerator.hpp b/src/libslic3r/SLA/SupportPointGenerator.hpp index 37a831b34..b8f5b607e 100644 --- a/src/libslic3r/SLA/SupportPointGenerator.hpp +++ b/src/libslic3r/SLA/SupportPointGenerator.hpp @@ -79,7 +79,7 @@ public: ExPolygons overhangs; // Overhangs, where the surface must slope. ExPolygons overhangs_slopes; - float overhangs_area; + float overhangs_area = 0.f; bool overlaps(const Structure &rhs) const { return this->bbox.overlap(rhs.bbox) && (this->polygon->overlaps(*rhs.polygon) || rhs.polygon->overlaps(*this->polygon));