fix circular bed diameter rounding to 1um

supermerill/SuperSlicer#1584
This commit is contained in:
supermerill 2021-09-26 21:43:48 +02:00
parent 4a0b2e681b
commit 3f796cdf78

View File

@ -75,6 +75,8 @@ BedShape::BedShape(const ConfigOptionPoints& points)
// all vertices are equidistant to center
m_type = Type::Circular;
m_diameter = unscale<double>(avg_dist * 2);
//round
m_diameter = std::round(1000 * m_diameter) / 1000.;
return;
}