Remember to clean up old grid array before filling it up again.

This commit is contained in:
Joseph Lenox 2018-05-07 22:16:20 -05:00 committed by Joseph Lenox
parent f9c3a300be
commit 561cbe7145

View File

@ -258,6 +258,7 @@ void Plate2D::update_bed_size() {
const auto& center = bb.center();
this->print_center = wxPoint(unscale(center.x), unscale(center.y));
this->grid.clear(); // clear out the old grid
// Cache bed contours and grid
{
const auto& step { scale_(10.0) }; // want a 10mm step for the lines