Set a missing bbox.defined flag.

This commit is contained in:
bubnikv 2017-09-13 10:28:02 +02:00
parent 6b2b279889
commit 83b5b9e660
2 changed files with 2 additions and 1 deletions

View file

@ -30,7 +30,7 @@ class BoundingBoxBase
void scale(double factor);
PointClass size() const;
double radius() const;
void translate(coordf_t x, coordf_t y) { this->min.translate(x, y); this->max.translate(x, y); }
void translate(coordf_t x, coordf_t y) { assert(this->defined); this->min.translate(x, y); this->max.translate(x, y); }
void translate(const Pointf &pos) { this->translate(pos.x, pos.y); }
void offset(coordf_t delta);
PointClass center() const;

View file

@ -1009,6 +1009,7 @@ void _3DScene::_load_wipe_tower_toolpaths(
ctxt.print->config.wipe_tower_y.value + ctxt.print->config.wipe_tower_per_color_wipe.value *
ctxt.print->m_tool_ordering.layer_tools()[range.begin()].wipe_tower_partitions + 10.,
ctxt.tool_change(range.end() - 1).front().print_z + 0.1);
bbox.defined = true;
std::vector<GLVolume*> vols;
if (ctxt.color_by_tool()) {
for (size_t i = 0; i < ctxt.number_tools(); ++ i)